Skip to content

jin-frame / interfaces/options/THook / TPreHook

Type Alias: TPreHook()

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

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

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

Parameters

req

TJinRequestConfig

request object

Returns

void | Promise<void>