Skip to main content

StringOptions

Index

Properties

optionalarbitrary

arbitrary?: Partial<StringConstraints>

optionalformat

format?: date-time | date | time | email | hostname | ipv4 | ipv6 | uri | ulid | uuid | base64 | duration

The format the string should follow (is not used for validation).

optionalmaxLength

maxLength?: number

The maximum the length the string is allowed to have.

optionalminLength

minLength?: number

The minimum the length the string is allowed to have.

optionalregex

regex?: string | RegExp

The pattern the string has.