UNPKG

464 BTypeScriptView Raw
1import { GraphQLCompositeType, GraphQLField } from 'graphql';
2export declare type ComplexityEstimatorArgs = {
3 type: GraphQLCompositeType;
4 field: GraphQLField<any, any>;
5 args: {
6 [key: string]: any;
7 };
8 childComplexity: number;
9};
10export declare type ComplexityEstimator = (options: ComplexityEstimatorArgs) => number | void;
11export declare type Complexity = ComplexityEstimator | number;
12//# sourceMappingURL=complexity.interface.d.ts.map
\No newline at end of file