-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Ensure that hooks can compile correctly for ES6 targets using di…
…fferent promise implementations
- Loading branch information
1 parent
8ddb696
commit e04e75f
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export interface Hooks<TDocument, TInstance> { | ||
onCreating? (document: TDocument): Promise<any> | void; | ||
onRetrieved? (document: TDocument): Promise<any> | void; | ||
onReady? (instance: TInstance): Promise<any> | void; | ||
onSaving?(instance: TInstance, changes: any): Promise<any> | void; | ||
onCreating? (document: TDocument): Promise<any> | PromiseLike<any> | void; | ||
onRetrieved? (document: TDocument): Promise<any> | PromiseLike<any> | void; | ||
onReady? (instance: TInstance): Promise<any> | PromiseLike<any> | void; | ||
onSaving?(instance: TInstance, changes: any): Promise<any> | PromiseLike<any> | void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters