@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
16 lines (14 loc) • 499 B
text/typescript
import { FieldState } from "./types.cjs";
//#region src/types/value/select.d.ts
/**
* A select field.
*
* @typeParam Enum - Selectable options for the field.
* @typeParam State - State of the field which determines its shape.
*
* @see More details: {@link https://prismic.io/docs/select}
*/
type SelectField<Enum extends string = string, State extends FieldState = FieldState> = State extends "empty" ? null : Enum;
//#endregion
export { SelectField };
//# sourceMappingURL=select.d.cts.map