Skip to content

Connectum API Reference / @connectum/interceptors / InterceptorFactory

Type Alias: InterceptorFactory<TOptions>

InterceptorFactory<TOptions> = TOptions extends void ? () => Interceptor : (options) => Interceptor

Defined in: types.ts:16

Interceptor factory function type

Type Parameters

TOptions

TOptions = void

Options type for the interceptor