Skip to content

jin-frame / interfaces/options/THook / TPreEitherHook

Type Alias: TPreEitherHook()

TPreEitherHook = (req) => void | Promise<void>

Defined in: src/interfaces/options/THook.ts:12

Execute before request. If you can change request object that is affected request.

Parameters

req

TJinRequestConfig

request object

Returns

void | Promise<void>