Skip to content

jin-frame / interfaces/options/Hooks / PreHook

Type Alias: PreHook() ​

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

Defined in: packages/jin-frame/src/interfaces/options/Hooks.ts:12

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

Parameters ​

req ​

JinRequestConfig

request object

Returns ​

void | Promise<void>