mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
6 lines
303 B
TypeScript
6 lines
303 B
TypeScript
import QueryComplexity from "graphql-query-complexity/dist/QueryComplexity";
|
|
import complexityFunction from "graphql-query-complexity";
|
|
const complexity = new QueryComplexity(null as any, null as any);
|
|
complexity.createError().message; // $ExpectType string
|
|
complexityFunction({maximumComplexity: 10});
|