SchemaOptionstype
{
readonly one?: string;
readonly many?: string;
readonly title?: string | undefined;
readonly description?: string | undefined;
readonly placeholder?: string | undefined;
readonly value?: unknown;
}| Property | Type | |
|---|---|---|
.one | string | String for one of this thing, e.g. product or item or sheep readonly |
.many | string | String for several of this thing, e.g. products or items or sheep (defaults to one + "s") readonly |
.title | string | Title of the schema, e.g. for using as the title of a corresponding field. readonly |
.description | string | Description of the schema, e.g. for using as a description in a corresponding field. readonly |
.placeholder | string | Placeholder of the schema, e.g. for using as a placeholder in a corresponding field. readonly |
.value | unknown | Default value for the schema if validate() is called with an undefined value. readonly |
Options allowed by a Schema instance.