Skip to content

@clerc/advanced-types

Classes

ClassDescription
FlagValidationError-

Functions

| Function | Description | | -------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------- | | Enum | Creates a Enum type function that validates the input against allowed values. The display name will be formatted as "value1 | value2 | ..." for help output. | | Range | Creates a range type function that validates the input is a number within the specified range. | | Regex | Creates a regex type function that validates the input against the provided pattern. |

Released under the MIT license