UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

19 lines (18 loc) 589 B
import type { CustomTypeModelFieldType } from "./types"; /** * A select custom type field. * * More details: {@link https://prismic.io/docs/select} * * @typeParam Options - Options for the field. * @typeParam DefaultValue - Default value for the field. */ export interface CustomTypeModelSelectField<Option extends string = string, DefaultValue extends Option = Option> { type: typeof CustomTypeModelFieldType.Select; config?: { label?: string | null; placeholder?: string; options?: readonly Option[]; default_value?: DefaultValue; }; }