Skip to content

FlagStringConstraintsFragmentV1 ​

String constraints of a flag or arg fragment, with the pattern split into source and flags.

Signatures ​

ts
type FlagStringConstraintsFragmentV1 = { nonEmpty?: boolean; minLength?: number; maxLength?: number; pattern?: { source: string; flags: string; }; };

Members ​

Members ​

nonEmpty ​

ts
nonEmpty?: boolean;

minLength ​

ts
minLength?: number;

maxLength ​

ts
maxLength?: number;

pattern ​

ts
pattern?: { source: string; flags: string; };

See Also ​

Released under the MIT License.