Interface Hooks<TDocument, TInstance>
Methods
Optional onCreating
- onCreating(document: TDocument): Promise<any> | PromiseLike<any> | any | never
-
Parameters
Returns Promise<any>
|
PromiseLike<any>
|
any
|
never
Optional onReady
- onReady(instance: TInstance): Promise<any> | PromiseLike<any> | any | never
-
Parameters
Returns Promise<any>
|
PromiseLike<any>
|
any
|
never
Optional onRetrieved
- onRetrieved(document: TDocument): Promise<any> | PromiseLike<any> | any | never
-
Parameters
Returns Promise<any>
|
PromiseLike<any>
|
any
|
never
Optional onSaving
- onSaving(instance: TInstance, changes: any): Promise<any> | PromiseLike<any> | any | never
-
Parameters
-
instance: TInstance
-
changes: any
Returns Promise<any>
|
PromiseLike<any>
|
any
|
never