1 | import { VNode } from './vnode';
|
2 | export declare type PreHook = () => any;
|
3 | export declare type InitHook = (vNode: VNode) => any;
|
4 | export declare type CreateHook = (emptyVNode: VNode, vNode: VNode) => any;
|
5 | export declare type InsertHook = (vNode: VNode) => any;
|
6 | export declare type PrePatchHook = (oldVNode: VNode, vNode: VNode) => any;
|
7 | export declare type UpdateHook = (oldVNode: VNode, vNode: VNode) => any;
|
8 | export declare type PostPatchHook = (oldVNode: VNode, vNode: VNode) => any;
|
9 | export declare type DestroyHook = (vNode: VNode) => any;
|
10 | export declare type RemoveHook = (vNode: VNode, removeCallback: () => void) => any;
|
11 | export declare type PostHook = () => any;
|
12 | export interface Hooks {
|
13 | pre?: PreHook;
|
14 | init?: InitHook;
|
15 | create?: CreateHook;
|
16 | insert?: InsertHook;
|
17 | prepatch?: PrePatchHook;
|
18 | update?: UpdateHook;
|
19 | postpatch?: PostPatchHook;
|
20 | destroy?: DestroyHook;
|
21 | remove?: RemoveHook;
|
22 | post?: PostHook;
|
23 | }
|