Added types for graphql-deduplicator (#25272)

This commit is contained in:
Luis Fernando Alvarez D
2018-04-25 14:03:52 -05:00
committed by Wesley Wigham
parent 8d8bf061a9
commit 030ab23ed3
4 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import { deflate, inflate } from 'graphql-deduplicator';
deflate({});
inflate({});

13
types/graphql-deduplicator/index.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
// Type definitions for graphql-deduplicator 2.0
// Project: https://github.com/gajus/graphql-deduplicator#readme
// Definitions by: Luis Fernando Alvarez D. <https://github.com/lfades>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export function deflate(response: object): {
[key: string]: any;
};
export function inflate(response: object): {
[key: string]: any;
};

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"graphql-deduplicator-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }