EnumField
A variable that is one of a fixed set.
A variable that is one of a fixed set.
Import#
ts
import type { EnumField } from "@shadow-js/dusk/server";
Signature#
ts
interface EnumField<V extends string = string> extends FieldBase {
readonly type: "enum";
readonly values: readonly V[];
readonly default?: V;
}
Members#
| Name | Type | Description |
|---|---|---|
V |
V extends string = string |
|
type |
readonly type: "enum" |
|
values |
readonly values: readonly V[] |
|
default? |
readonly default?: V |