@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
19 lines (18 loc) • 795 B
TypeScript
import * as t from "io-ts";
import type { BooleanField } from "../../../customtypes";
import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx";
export declare const BooleanContentType = "BooleanContent";
export declare const isBooleanContent: (u: unknown) => u is {
__TYPE__: "BooleanContent";
value: boolean;
};
export declare const BooleanLegacy: (ctx: LegacyContentCtx) => t.Type<{
__TYPE__: "BooleanContent";
value: boolean;
}, WithTypes<boolean>, unknown>;
export declare const BooleanContent: t.ExactC<t.TypeC<{
__TYPE__: t.LiteralC<"BooleanContent">;
value: t.BooleanC;
}>>;
export declare type BooleanContent = t.TypeOf<typeof BooleanContent>;
export declare const BooleanContentDefaultValue: (field: BooleanField) => BooleanContent | undefined;