@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
20 lines (19 loc) • 760 B
TypeScript
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>;