From fb9016f4c9709320cb76984eefc980ca381330d8 Mon Sep 17 00:00:00 2001 From: saostad <16025625+saostad@users.noreply.github.com> Date: Fri, 31 Jan 2020 17:27:21 -0500 Subject: [PATCH] [ldapjs] better typing for SearchOptions interface (#42006) * better typing for SearchOptions interface better typing base on [official docs](http://ldapjs.org/client.html) for SearchOptions interface * added Timeout in seconds for property timeLimit added Timeout in seconds for property timeLimit --- types/ldapjs/index.d.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/types/ldapjs/index.d.ts b/types/ldapjs/index.d.ts index e7caf601fb..25f4d1a47e 100644 --- a/types/ldapjs/index.d.ts +++ b/types/ldapjs/index.d.ts @@ -51,11 +51,16 @@ export interface ClientOptions { } export interface SearchOptions { - scope?: string; - filter?: string | Filter; - attributes?: string | string[]; - sizeLimit?: number; - timeLimit?: number; + /** Defaults to base */ + scope?: "base" | "one" | "sub"; + /** Defaults to (objectclass=*) */ + filter?: string | Filter; + /** Defaults to the empty set, which means all attributes */ + attributes?: string | string[]; + /** Defaults to 0 (unlimited) */ + sizeLimit?: number; + /** Timeout in seconds. Defaults to 10. Lots of servers will ignore this! */ + timeLimit?: number; derefAliases?: number; typesOnly?: boolean; paged?: boolean | {