createApiFactory()
Home > @backstage/core-plugin-api
> createApiFactory
Used to infer types for a standalone ApiFactory that isn't immediately passed to another function.
Signature:
function createApiFactory<Api, Impl extends Api, Deps extends {
[name in string]: unknown;
}>(factory: ApiFactory<Api, Impl, Deps>): ApiFactory<Api, Impl, Deps>;
Parameters
Parameter |
Type |
Description |
---|---|---|
factory |
ApiFactory<Api, Impl, Deps> |
ApiFactory<Api, Impl, Deps>
Remarks
This function doesn't actually do anything, it's only used to infer types.