SlugSchemaOptionsinterface

{
	readonly value?: string | undefined;
	readonly max?: number | undefined;
	readonly match?: RegExp | undefined;
	readonly case?: "upper" | "lower" | undefined;
	readonly input?: StringInputType | undefined;
}
PropertyType
.valuestring
Default string value used when the input is undefined. readonly
.maxnumber
Maximum allowed character length. Defaults to 32 readonly
.matchRegExp
Regular expression the sanitized string must match. readonly
.case"upper"
"lower"
Force the result to "upper" or "lower" case. readonly
.inputStringInputType
HTML <input /> type="" hint for downstream UIs. readonly

Options for a SlugSchema.

  • The length and single-line constraints are fixed internally, so only the presentation-level string options are exposed.