UNPKG

@prismicio/types-internal

Version:
20 lines (19 loc) 760 B
import * as t from "io-ts"; export declare const UIDFieldType = "UID"; export declare const UIDConfig: t.ExactC<t.PartialC<{ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>; useAsTitle: t.BooleanC; placeholder: t.StringC; }>>; export declare type UIDConfig = t.TypeOf<typeof UIDConfig>; export declare const UID: t.ExactC<t.IntersectionC<[t.TypeC<{ type: t.LiteralC<"UID">; }>, 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]>; useAsTitle: t.BooleanC; placeholder: t.StringC; }>>; }>]>>; export declare type UID = t.TypeOf<typeof UID>;