@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
24 lines (22 loc) • 688 B
text/typescript
import { CustomTypeModelFieldType } from "./types.cjs";
//#region src/types/model/select.d.ts
/**
* 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.
*/
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;
};
}
//#endregion
export { CustomTypeModelSelectField };
//# sourceMappingURL=select.d.cts.map