Function: text()
function text(
max,
description?,
min?
): object;Defined in: packages/core/src/schemas/fragments.ts:69
A string of at most max characters; min 1 for a field that can't be blank
Parameters
| Parameter | Type |
|---|---|
max | number |
description? | string |
min? | number |
Returns
object
maxLength
maxLength: number = max;minLength?
minLength?: number = min;type
type: "string";