UNPKG

@prismicio/types-internal

Version:
24 lines (23 loc) 1.3 kB
import * as t from "io-ts"; export declare const RangeFieldType = "Range"; export declare const RangeConfig: t.ExactC<t.PartialC<{ label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>; placeholder: t.StringC; min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; }>>; export declare type RangeConfig = t.TypeOf<typeof RangeConfig>; export declare const Range: t.ExactC<t.IntersectionC<[t.TypeC<{ type: t.LiteralC<"Range">; }>, 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; min: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; max: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; step: t.UnionC<[t.NumberC, import("io-ts-types/lib/NumberFromString").NumberFromStringC]>; }>>; }>]>>; export declare type Range = t.TypeOf<typeof Range>;