graphql-scalars
Version:
A collection of scalar types not included in base GraphQL.
14 lines (13 loc) • 547 B
text/typescript
/**
* Copyright (c) 2017, Dirk-Jan Rutten
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
export declare const validateTime: (time: string) => boolean;
export declare const validateDate: (datestring: string) => boolean;
export declare const validateDateTime: (dateTimeString: string) => boolean;
export declare const validateUnixTimestamp: (timestamp: number) => boolean;
export declare const validateJSDate: (date: Date) => boolean;