@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
20 lines (19 loc) • 761 B
TypeScript
import * as t from "io-ts";
export declare const DateFieldType = "Date";
export declare const DateConfig: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
placeholder: t.StringC;
default: t.StringC;
}>>;
export declare type DateConfig = t.TypeOf<typeof DateConfig>;
export declare const Date: t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Date">;
}>, t.PartialC<{
fieldset: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
config: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
placeholder: t.StringC;
default: t.StringC;
}>>;
}>]>>;
export declare type Date = t.TypeOf<typeof Date>;