UNPKG

777 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 GraphQLDateTimeConfig: GraphQLScalarTypeConfig<Date, Date>;
12/**
13 * An RFC 3339 compliant date-time scalar.
14 *
15 * Input:
16 * This scalar takes an RFC 3339 date-time string as input and
17 * parses it to a javascript Date.
18 *
19 * Output:
20 * This scalar serializes javascript Dates,
21 * RFC 3339 date-time strings and unix timestamps
22 * to RFC 3339 UTC date-time strings.
23 */
24export declare const GraphQLDateTime: GraphQLScalarType<Date, Date>;