the error in callbacks can be null (#43530)

This commit is contained in:
Steven Hair 2020-04-06 15:02:39 -04:00 committed by GitHub
parent cf4e7a3c2a
commit 6ebec5bcbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {