mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Add type definitions for graphql-type-json package
This commit is contained in:
parent
e251c14388
commit
2dddf787b6
20
types/graphql-type-json/graphql-type-json-tests.ts
Normal file
20
types/graphql-type-json/graphql-type-json-tests.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import {GraphQLObjectType, GraphQLInputObjectType} from "graphql";
|
||||
import * as GraphQLJSON from "graphql-type-json";
|
||||
|
||||
const TestType = new GraphQLObjectType({
|
||||
name: "TestType",
|
||||
fields: {
|
||||
test: {
|
||||
type: GraphQLJSON
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const TestInputType = new GraphQLInputObjectType({
|
||||
name: "TestInputType",
|
||||
fields: {
|
||||
test: {
|
||||
type: GraphQLJSON
|
||||
}
|
||||
}
|
||||
});
|
||||
8
types/graphql-type-json/index.d.ts
vendored
Normal file
8
types/graphql-type-json/index.d.ts
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
// Type definitions for graphql-type-json 0.1
|
||||
// Project: https://github.com/taion/graphql-type-json#readme
|
||||
// Definitions by: Pavel Ivanov <https://github.com/schfkt>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
import {GraphQLScalarType} from "graphql";
|
||||
|
||||
declare const GraphQLJSON: GraphQLScalarType;
|
||||
export = GraphQLJSON;
|
||||
22
types/graphql-type-json/tsconfig.json
Normal file
22
types/graphql-type-json/tsconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"graphql-type-json-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/graphql-type-json/tslint.json
Normal file
1
types/graphql-type-json/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user