Type alias BindApiFactory

BindApiFactory: (<T>(apiModuleName, serviceIdentifier, factoryClass) => void)

Bind a service identifier for the factory function creating API objects of type T for a client plugin to a class providing a call() method that implements that factory function.

Type declaration

    • <T>(apiModuleName, serviceIdentifier, factoryClass): void
    • Type Parameters

      • T extends object

        the API object type that the factory creates

      Parameters

      • apiModuleName: string
      • serviceIdentifier: interfaces.ServiceIdentifier<ApiFactory<T>>

        the injection key identifying the API factory function

      • factoryClass: (new () => {
            createApi: ApiFactory<T>;
        })

        the class implementing the API factory function via its call() method

      Returns void