Function createTupleListParser

  • Creates a parser function that parses a delimited string into a list of typed values. The parsers array corresponds to the ordering of the expected input values.

    Type Parameters

    Parameters

    • delimiter: string

      The delimiter used to split the string into individual values.

    • parsers: ((value) => T)[]

      An array of functions used to parse each individual value in the string.

    Returns ((value) => T[])

    A function that takes a delimited string and returns an array of typed values.

      • (value): T[]
      • Parameters

        • value: string

        Returns T[]

Generated using TypeDoc