mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add types for graphql-depth-limit * improve type declaration * remove "strict-export-declare-modifiers" rule disable
15 lines
545 B
TypeScript
15 lines
545 B
TypeScript
// Type definitions for graphql-depth-limit 1.1
|
|
// Project: https://github.com/stems/graphql-depth-limit#readme
|
|
// Definitions by: Siim Tiilen <https://github.com/eritikass>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
declare function depthLimit(depthLimit: number, options?: depthLimit.Options, callback?: (obj: any) => void): any;
|
|
export = depthLimit;
|
|
|
|
declare namespace depthLimit {
|
|
interface Options {
|
|
ignore: Array<string | RegExp | ((queryDepths: any[]) => boolean)>;
|
|
}
|
|
}
|