Interface Parser

Parser defines the signature of a string parsing function. Parser functions return undefined when the string fails to convert.

The following Parser implementations are included with easy-git-annex: parseBigInt, parseNumber, parseOptionalString, and parseUnixDate.

Hierarchy

  • Parser
  • Parameters

    • s: string

      The string to parse.

    Returns unknown

    The parsed value if successful; otherwise, undefined.