mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Add type definitions for graphql-date (#13818)
* Add type definitions for graphql-date * Add missing semicolons
This commit is contained in:
13
graphql-date/graphql-date-tests.ts
Normal file
13
graphql-date/graphql-date-tests.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {GraphQLObjectType} from 'graphql';
|
||||
import * as GraphQLDate from 'graphql-date';
|
||||
|
||||
const fooType = new GraphQLObjectType({
|
||||
name: 'Foo',
|
||||
description: 'Some foo type',
|
||||
fields: {
|
||||
created: {
|
||||
type: GraphQLDate,
|
||||
description: 'Date foo was created',
|
||||
}
|
||||
}
|
||||
});
|
||||
10
graphql-date/index.d.ts
vendored
Normal file
10
graphql-date/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for graphql-date 1.0
|
||||
// Project: https://github.com/tjmehta/graphql-date
|
||||
// Definitions by: Eric Naeseth <https://github.com/enaeseth>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import {GraphQLScalarType} from 'graphql';
|
||||
|
||||
declare const date: GraphQLScalarType;
|
||||
|
||||
export = date;
|
||||
20
graphql-date/tsconfig.json
Normal file
20
graphql-date/tsconfig.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"graphql-date-tests.ts"
|
||||
]
|
||||
}
|
||||
1
graphql-date/tslint.json
Normal file
1
graphql-date/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user