@clerc/parser
Classes
| Class | Description |
|---|---|
| InvalidSchemaError | - |
Interfaces
| Interface | Description |
|---|---|
| FlagDefaultValueFunction | - |
| ObjectInputType | - |
| ParsedResult | The parsed result. |
| ParserOptions | Configuration options for the parser. |
| TypeFunction | Defines how a string input is converted to the target type T. |
Type Aliases
| Type Alias | Description |
|---|---|
| BaseFlagOptions | - |
| FlagDefaultValue | - |
| FlagDefinitionValue | - |
| FlagOptions | - |
| FlagsDefinition | - |
| IgnoreFunction | A callback function to conditionally stop parsing. When it returns true, parsing stops and remaining arguments are preserved in ignored. |
| InferFlags | An advanced utility type that infers the exact type of the flags object in the parsed result, based on the provided flags configuration object T. |
| RawInputType | - |
| TypeValue | - |
Variables
| Variable | Description |
|---|---|
| DOUBLE_DASH | - |
| KNOWN_FLAG | - |
| PARAMETER | - |
| UNKNOWN_FLAG | - |
Functions
| Function | Description | | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------ | --------------------- | | createParser | - | | 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. | | parse | - | | 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. |

