ChoiceSchemaOptionsinterface

{
	readonly options: PossibleChoiceOptions<O>;
	readonly value?: O | I;
}
PropertyType
.optionsPossibleChoiceOptions<O>
Specify correct options using a dictionary of entries. required readonly
.valueO
I
Default option for the value. readonly

Options for ChoiceSchema.

  • options — the allowed choices, as a { key: title } dictionary or an array of keys.
  • value — default option used when the input is undefined.