From 02cf6477bf2556b623ed7507fd4be989266e1f47 Mon Sep 17 00:00:00 2001 From: Abhik Mitra Date: Wed, 5 Sep 2018 23:25:24 +0530 Subject: [PATCH] Added more types --- types/graphql-query-complexity/dist/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/graphql-query-complexity/dist/index.d.ts b/types/graphql-query-complexity/dist/index.d.ts index 5ceb3a70ea..082f70cc11 100644 --- a/types/graphql-query-complexity/dist/index.d.ts +++ b/types/graphql-query-complexity/dist/index.d.ts @@ -1,2 +1,4 @@ import { QueryComplexityOptions } from './QueryComplexity'; export default function createQueryComplexityValidator(options: QueryComplexityOptions): () => void; +export type ComplexityResolver = (args: any, complexity: number) => number; +export type Complexity = number | ComplexityResolver;