UNPKG

726 BTypeScriptView Raw
1/**
2 * Copyright (c) 2017, Dirk-Jan Rutten
3 * All rights reserved.
4 *
5 * This source code is licensed under the MIT license found in the
6 * LICENSE file in the root directory of this source tree.
7 *
8 */
9import { GraphQLScalarType } from 'graphql';
10import type { GraphQLScalarTypeConfig } from 'graphql';
11export declare const GraphQLDateConfig: GraphQLScalarTypeConfig<Date, string>;
12/**
13 * An RFC 3339 compliant date scalar.
14 *
15 * Input:
16 * This scalar takes an RFC 3339 date string as input and
17 * parses it to a javascript Date.
18 *
19 * Output:
20 * This scalar serializes javascript Dates and
21 * RFC 3339 date strings to RFC 3339 date strings.
22 */
23export declare const GraphQLDate: GraphQLScalarType<Date, string>;