mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add typings for graphql-iso-date (#23202)
* Create index.d.ts * Create tsconfig.json * Update index.d.ts * add graphql-iso-date types * fix tests * add strict function types
This commit is contained in:
5
types/graphql-iso-date/graphql-iso-date-tests.ts
Normal file
5
types/graphql-iso-date/graphql-iso-date-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { GraphQLDate, GraphQLTime, GraphQLDateTime } from "graphql-iso-date";
|
||||
|
||||
GraphQLDate.name;
|
||||
GraphQLTime.name;
|
||||
GraphQLDateTime.name;
|
||||
11
types/graphql-iso-date/index.d.ts
vendored
Normal file
11
types/graphql-iso-date/index.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Type definitions for graphql-iso-date 3.3
|
||||
// Project: https://github.com/excitement-engineer/graphql-iso-date
|
||||
// Definitions by: Jason Waldrip <https://github.com/jwaldrip>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { GraphQLScalarType } from "graphql";
|
||||
|
||||
export const GraphQLDate: GraphQLScalarType;
|
||||
export const GraphQLTime: GraphQLScalarType;
|
||||
export const GraphQLDateTime: GraphQLScalarType;
|
||||
23
types/graphql-iso-date/tsconfig.json
Normal file
23
types/graphql-iso-date/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"graphql-iso-date-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/graphql-iso-date/tslint.json
Normal file
1
types/graphql-iso-date/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user