Type alias ApiClientInputDeps<Name>

ApiClientInputDeps<Name>: {
    config: {
        name: Name;
    } & ApiConfig;
    simpleHttpClient?: SimpleHttpClientInterface;
    log: SimpleLoggerInterface;
}

The dependencies required by the API client

Type Parameters

  • Name extends string

Type declaration

  • config: {
        name: Name;
    } & ApiConfig

    The api's config plus a unique name for the API. This name will become the output dependency's key

  • Optional simpleHttpClient?: SimpleHttpClientInterface

    An optional SimpleHttpClient to use as the underlying client. If not provided, defaults to SimpleHttpClientFetch

  • log: SimpleLoggerInterface

    A logger

Generated using TypeDoc