the error in callbacks can be null (#43530)

This commit is contained in:
Steven Hair
2020-04-06 12:02:39 -07:00
committed by GitHub
parent cf4e7a3c2a
commit 6ebec5bcbe
+3 -3
View File
@@ -18,15 +18,15 @@ export interface ErrorCallback {
}
export interface CompareCallback {
(error: Error, matched?: boolean): void;
(error: Error | null, matched?: boolean): void;
}
export interface ExopCallback {
(error: Error, value: string, result?: any): void;
(error: Error | null, value: string, result?: any): void;
}
export interface CallBack {
(error: Error, result?: any): void;
(error: Error | null, result?: any): void;
}
export interface ClientOptions {