Skip to content

[I] PatternData

A string validation pattern and optional human-readable explanation supplied by @pattern.

PropertyModifierTypeDescription
patternreadonlystringRegular expression source text, without enclosing slashes or flags.
validationMessage?readonlystringOptional explanation emitters can show when a value does not match the pattern.