diff --git a/types/graphql-type-uuid/graphql-type-uuid-tests.ts b/types/graphql-type-uuid/graphql-type-uuid-tests.ts new file mode 100644 index 0000000000..e751245158 --- /dev/null +++ b/types/graphql-type-uuid/graphql-type-uuid-tests.ts @@ -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 + } + } +}); diff --git a/types/graphql-type-uuid/index.d.ts b/types/graphql-type-uuid/index.d.ts new file mode 100644 index 0000000000..ae7ae8431d --- /dev/null +++ b/types/graphql-type-uuid/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for graphql-type-uuid 0.2 +// Project: https://github.com/olistic/graphql-type-uuid +// Definitions by: Dmitry Shirokov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.6 + +import { GraphQLScalarType } from "graphql"; + +declare const GraphQLJSON: GraphQLScalarType; +export = GraphQLJSON; diff --git a/types/graphql-type-uuid/tsconfig.json b/types/graphql-type-uuid/tsconfig.json new file mode 100644 index 0000000000..5e36060551 --- /dev/null +++ b/types/graphql-type-uuid/tsconfig.json @@ -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" + ] +} diff --git a/types/graphql-type-uuid/tslint.json b/types/graphql-type-uuid/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/graphql-type-uuid/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }