Type Alias APIClientProviderOptions

APIClientProviderOptions: {
    clientClass?: typeof APIClient;
    configSetting?: string;
    serviceName?: string;
}

The options for the provider creator that registers an APIClient in the container. These options allow the application to register multiple instances for different APIs.

Type declaration

  • OptionalclientClass?: typeof APIClient

    The class the service will instantiate. It has to extend APIClient.

    APIClient
    
  • OptionalconfigSetting?: string

    The name of the configuration setting that has the API information.

    'api'
    
  • OptionalserviceName?: string

    The name of the service that will be registered into the app.

    'apiClient'