Interface ICreateApiHandlerFactoryOptions<THandler, TApiMethods>

Options for createApiHandlerFactory() function.

interface ICreateApiHandlerFactoryOptions<THandler, TApiMethods> {
    createApiResponse?: Nilable<ApiResponseBuilderFactory>;
    getApiClient: AxiosClientProvider;
    methods: TApiMethods;
}

Type Parameters

Properties

createApiResponse?: Nilable<ApiResponseBuilderFactory>

A custom function, creating a ApiResponseBuilder instance.

getApiClient: AxiosClientProvider

The function, that returns the API client.

methods: TApiMethods

The list of methods to add.

Generated using TypeDoc