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

    Class Converter<TInput, TOutput>Abstract

    Abstract base class for converters that convert values from one type to another.

    Type Parameters

    • TInput

      The type of the input value.

    • TOutput

      The type of the output value.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Checks if the given value can be converted by this converter.

      Parameters

      • value: TInput

        The value to check.

      Returns boolean

      True if the value can be converted, false otherwise.

    • 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.