@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
20 lines (19 loc) • 806 B
TypeScript
import * as t from "io-ts";
export declare const TimestampFieldType = "Timestamp";
export declare const TimestampConfig: 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 TimestampConfig = t.TypeOf<typeof TimestampConfig>;
export declare const Timestamp: t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Timestamp">;
}>, 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 Timestamp = t.TypeOf<typeof Timestamp>;