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