Merge pull request #34758 from runk/graphql-type-uuid

Add @types/graphql-type-uuid
This commit is contained in:
Armando Aguirre
2019-04-16 16:02:03 -07:00
committed by GitHub
4 changed files with 55 additions and 0 deletions
@@ -0,0 +1,20 @@
import { GraphQLObjectType, GraphQLInputObjectType } from "graphql";
import * as GraphQLJSON from "graphql-type-uuid";
const TestType = new GraphQLObjectType({
name: "TestType",
fields: {
test: {
type: GraphQLJSON
}
}
});
const TestInputType = new GraphQLInputObjectType({
name: "TestInputType",
fields: {
test: {
type: GraphQLJSON
}
}
});
+10
View File
@@ -0,0 +1,10 @@
// Type definitions for graphql-type-uuid 0.2
// Project: https://github.com/olistic/graphql-type-uuid
// Definitions by: Dmitry Shirokov <https://github.com/runk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
import { GraphQLScalarType } from "graphql";
declare const GraphQLJSON: GraphQLScalarType;
export = GraphQLJSON;
+24
View File
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"esnext.asynciterable"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"graphql-type-uuid-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }