UNPKG

340 BTypeScriptView Raw
1import { Type } from './type';
2/**
3 * Date type
4 */
5export declare class DateType implements Type<Date> {
6 readonly name = "date";
7 isInstance(value: any): boolean;
8 isCoercible(value: any): boolean;
9 defaultValue(): Date;
10 coerce(value: any): any;
11 serialize(value: Date | null | undefined): string | null | undefined;
12}