betterbe • Docs
betterbe / StringOptionsBase
optional
alphabet:string
optional
maxLength:number
optional
minLength:number
optional
oneOf:undefined
optional
pattern:RegExp
optional
required:boolean
Default is true
optional
test:TestFunction
<string
>
Expects a function that receives the string value and throws an Error if it is invalid.