Skip to content

@clerc/parser

Classes

ClassDescription
InvalidSchemaError-

Interfaces

InterfaceDescription
FlagDefaultValueFunction-
ObjectInputType-
ParsedResultThe parsed result.
ParserOptionsConfiguration options for the parser.
TypeFunctionDefines how a string input is converted to the target type T.

Type Aliases

Type AliasDescription
BaseFlagOptions-
FlagDefaultValue-
FlagDefinitionValue-
FlagOptions-
FlagsDefinition-
IgnoreFunctionA callback function to conditionally stop parsing. When it returns true, parsing stops and remaining arguments are preserved in ignored.
InferFlagsAn 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

VariableDescription
DOUBLE_DASH-
KNOWN_FLAG-
PARAMETER-
UNKNOWN_FLAG-

Functions

FunctionDescription
createParser-
parse-

在 MIT 许可证下发布