Files
joshuaharry 001d508365 🤖 Merge PR #55304 [graphql-depth-limit] Make ignore optional by @joshuaharry
* Make ignore optional

* Fix test
2021-09-11 16:25:22 -07:00

15 lines
546 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)>;
}
}