@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
20 lines (19 loc) • 778 B
TypeScript
import * as t from "io-ts";
export declare const EmbedFieldType = "Embed";
export declare const EmbedConfig: t.ExactC<t.PartialC<{
label: t.UnionC<[t.Type<string, string, unknown>, t.NullC, t.UndefinedC]>;
placeholder: t.StringC;
useAsTitle: t.BooleanC;
}>>;
export declare type EmbedConfig = t.TypeOf<typeof EmbedConfig>;
export declare const Embed: t.ExactC<t.IntersectionC<[t.TypeC<{
type: t.LiteralC<"Embed">;
}>, 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;
useAsTitle: t.BooleanC;
}>>;
}>]>>;
export declare type Embed = t.TypeOf<typeof Embed>;