@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
17 lines (16 loc) • 585 B
TypeScript
import * as t from "io-ts";
import type { FieldOrSliceType } from "../LegacyContentCtx";
export declare const EmptyContentType = "EmptyContent";
export declare const isEmptyContent: (u: unknown) => u is {
type: string;
__TYPE__: "EmptyContent";
};
export declare const EmptyLegacy: (type: FieldOrSliceType) => t.Type<{
type: string;
__TYPE__: "EmptyContent";
}, unknown, unknown>;
export declare const EmptyContent: t.ExactC<t.TypeC<{
type: t.StringC;
__TYPE__: t.LiteralC<"EmptyContent">;
}>>;
export declare type EmptyContent = t.TypeOf<typeof EmptyContent>;