mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
[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:
Vendored
+10
-5
@@ -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 | {
|
||||
|
||||
Reference in New Issue
Block a user