mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Add type definitions for graphql-date (#13818)
* Add type definitions for graphql-date * Add missing semicolons
This commit is contained in:
@@ -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',
|
||||
}
|
||||
}
|
||||
});
|
||||
Vendored
+10
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
Reference in New Issue
Block a user