Alokai

ApiClientExtensionHooks

interface ApiClientExtensionHooks<C = any> {
	afterCall?: <ARGS, RESPONSE>(params: AfterCallParams<C, ARGS, RESPONSE>) => AfterCallArgs;
	afterCreate?: (params: HookParams<C>) => C;
	beforeCall?: <ARGS>(params: BeforeCallParams<C, ARGS>) => BeforeCallArgs;
	beforeCreate?: (params: HookParams<C>) => C;
}

Properties

NameRequiredTypeDescription
afterCallOptional<ARGS, RESPONSE>(params: AfterCallParams<C, ARGS, RESPONSE>) => AfterCallArgsHook called after every API method execution.
afterCreateOptional(params: HookParams<C>) => CHook called once after the API client is successfully created.
beforeCallOptional<ARGS>(params: BeforeCallParams<C, ARGS>) => BeforeCallArgsHook called before every API method execution.
beforeCreateOptional(params: HookParams<C>) => CHook called once before the API client establishes a connection.

Referenced Types

On this page