From 6ebec5bcbec1e006131d972585e4db816774d822 Mon Sep 17 00:00:00 2001 From: Steven Hair Date: Mon, 6 Apr 2020 15:02:39 -0400 Subject: [PATCH] the error in callbacks can be null (#43530) --- types/ldapjs/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/ldapjs/index.d.ts b/types/ldapjs/index.d.ts index 5d0298c73b..a576fa3ba7 100644 --- a/types/ldapjs/index.d.ts +++ b/types/ldapjs/index.d.ts @@ -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 {