mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Add @types/graphql-type-uuid
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
});
|
||||
Vendored
+10
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user