@sprucelabs/schema
Version:
Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓
10 lines (9 loc) • 360 B
TypeScript
import { FieldDefinition } from './field.static.types';
export type DateTimeFieldValue = number;
export type DateTimeFieldDefinition = FieldDefinition<DateTimeFieldValue> & {
/** * A date/time field that stores everything in GMT and handles all the timezone */
type: 'dateTime';
options?: {
dateTimeFormat?: 'epoch' | 'iso_8601';
};
};