npm.io
1.1.6 • Published 2 years ago

@types/graphql-depth-limit

Licence
MIT
Version
1.1.6
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/graphql-depth-limit

Summary

This package contains type definitions for graphql-depth-limit (https://github.com/stems/graphql-depth-limit#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-depth-limit.

index.d.ts

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)>;
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: graphql

Credits

These definitions were written by Siim Tiilen.