DefinitelyTyped/types/graphql-date/graphql-date-tests.ts
2017-07-25 10:34:23 -07:00

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