UNPKG

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