Files
DefinitelyTyped/graphql-date/graphql-date-tests.ts
Eric Naeseth 8a27ebe4d2 Add type definitions for graphql-date (#13818)
* Add type definitions for graphql-date

* Add missing semicolons
2017-01-06 17:21:49 -08:00

14 lines
313 B
TypeScript

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',
}
}
});