UNPKG

@prismicio/types-internal

Version:
21 lines (20 loc) 817 B
import * as t from "io-ts"; export declare const BooleanFieldType = "Boolean"; export declare const BooleanConfig: t.ExactC<t.PartialC<{ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>; default_value: t.BooleanC; placeholder_true: t.StringC; placeholder_false: t.StringC; }>>; export declare type BooleanConfig = t.TypeOf<typeof BooleanConfig>; export declare const BooleanField: t.ExactC<t.IntersectionC<[t.TypeC<{ type: t.LiteralC<"Boolean">; }>, t.PartialC<{ config: t.ExactC<t.PartialC<{ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>; default_value: t.BooleanC; placeholder_true: t.StringC; placeholder_false: t.StringC; }>>; }>]>>; export declare type BooleanField = t.TypeOf<typeof BooleanField>;