1 | import 'reflect-metadata';
|
2 | import { HookMeta } from './hook-meta';
|
3 | import { HookOptions } from './hook-options';
|
4 | import { SequelizeHooks } from 'sequelize/types/hooks';
|
5 | import { ModelCtor } from '../../model/model/model';
|
6 |
|
7 |
|
8 |
|
9 | export declare function installHooks(models: ModelCtor[]): void;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare function implementHookDecorator(hookType: keyof SequelizeHooks, args: any[]): Function | void;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare function addHook(target: any, hookType: keyof SequelizeHooks, methodName: string, options?: HookOptions): void;
|
23 |
|
24 |
|
25 |
|
26 | export declare function getHooks(target: any): HookMeta[] | undefined;
|
27 |
|
28 |
|
29 |
|
30 | export declare function setHooks(target: any, hooks: HookMeta[]): void;
|