[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
This commit is contained in:
saostad
2020-01-31 14:27:21 -08:00
committed by GitHub
parent 76f00ccabf
commit fb9016f4c9
+10 -5
View File
@@ -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 | {