UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

15 lines (13 loc) 426 B
import { FieldState } from "./types.js"; //#region src/types/value/keyText.d.ts /** * A key text field * * @typeParam State - State of the field which determines its shape. * * @see More details: {@link https://prismic.io/docs/key-text} */ type KeyTextField<State extends FieldState = FieldState> = State extends "empty" ? null | "" : string; //#endregion export { KeyTextField }; //# sourceMappingURL=keyText.d.ts.map