Literal discriminator selecting this parser.
Accepted specification, including domain-specific options.
Result returned by parsing; it need not be numeric.
Converts a complete input string to a domain value, or throws for invalid input.
OptionalresolveValidates a specification without parsing input; may throw or return parse: false to reject it.
Defines how one application-specific domain is parsed.
Register it with !createParser or extensions-parse!Parser.withCodec. Share the specification type with your formatting codec, but import this type from
@neutrium/formatter/extensions/parse. The parser must validate the entire input and throw when it cannot return a valid value; the registry does not validate its result.Example: Parse a custom status field