mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Added types for graphql-deduplicator (#25272)
This commit is contained in:
committed by
Wesley Wigham
parent
8d8bf061a9
commit
030ab23ed3
4
types/graphql-deduplicator/graphql-deduplicator-tests.ts
Normal file
4
types/graphql-deduplicator/graphql-deduplicator-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { deflate, inflate } from 'graphql-deduplicator';
|
||||
|
||||
deflate({});
|
||||
inflate({});
|
||||
13
types/graphql-deduplicator/index.d.ts
vendored
Normal file
13
types/graphql-deduplicator/index.d.ts
vendored
Normal 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;
|
||||
};
|
||||
23
types/graphql-deduplicator/tsconfig.json
Normal file
23
types/graphql-deduplicator/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/graphql-deduplicator/tslint.json
Normal file
1
types/graphql-deduplicator/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user