StringField
A text variable.
A text variable.
Import#
ts
import type { StringField } from "@shadow-js/dusk/server";
Signature#
ts
interface StringField extends FieldBase {
readonly type: "string";
readonly default?: string;
readonly minLength?: number;
readonly maxLength?: number;
readonly pattern?: RegExp;
}
Members#
| Name | Type | Description |
|---|---|---|
type |
readonly type: "string" |
|
default? |
readonly default?: string |
|
minLength? |
readonly minLength?: number |
|
maxLength? |
readonly maxLength?: number |
|
pattern? |
readonly pattern?: RegExp |