@wpazderski/js-utils
    Preparing search index...

    Class FirstSuitableConverter<TInput, TOutput>

    Converter that converts a value of type "TInput" to a value of type "TOutput" using the first suitable converter from a list of converters.

    Type Parameters

    • TInput

      The type of the input value.

    • TOutput

      The type of the output value.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    converters: Converter<TInput, TOutput>[]

    Array of converters to use for conversion.

    Methods

    • Throws a ConversionError for the given value.

      Parameters

      • value: TInput

        The value that caused the conversion error.

      Returns never

      never - This function does not return; it always throws an error.

      ConversionError - An error indicating that the conversion failed.