ApiFactory
Home > @backstage/core-plugin-api
> ApiFactory
Describes type returning API implementations.
Signature:
export type ApiFactory<Api, Impl extends Api, Deps extends {
[name in string]: unknown;
}> = {
api: ApiRef<Api>;
deps: TypesToApiRefs<Deps>;
factory(deps: Deps): Impl;
};
References: ApiRef, TypesToApiRefs