postgrelize / HookFunction
Type Alias: HookFunction ​
HookFunction = (...
args) =>unknown
Defined in: src/hooks/hooks.ts:63
Hook function. May be async; its return value is ignored. Receives the model class as this. Its parameters are any, so an unannotated callback (Model.beforeFind((options) => ...)) compiles as it does against the Sequelize v6 typings; annotate them for type checking.
Parameters ​
args ​
...any[]
Returns ​
unknown