Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pooya parsa
committed
Apr 17, 2020
1 parent
7fd52df
commit 823cdca
Showing
4 changed files
with
31 additions
and
24 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
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,8 +1,12 @@ | ||
export type unregHook = () => {} | ||
export type hookFn = (...args: any) => Promise<void> | void | ||
export type unregHookT = () => void | ||
export type hookFnT = (...args: any) => Promise<void> | void | ||
export type configHooksT = { [name: string]: configHooksT | hookFnT } | ||
export type deprecatedHookT = string | { message: string, to: string } | ||
export type deprecatedHooksT = { [name: string]: deprecatedHookT} | ||
export type flatHooksT = { [name: string]: hookFnT } | ||
|
||
export interface Logger { | ||
error(...args: any), | ||
fatal?(...args: any), | ||
warn?(...args: any) | ||
export interface LoggerT { | ||
error(...args: any): void, | ||
fatal?(...args: any): void, | ||
warn(...args: 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