Interface Transmuter<T>

Interface for a transmuter that contains a detector, a transmuter function, and an execute function.

interface Transmuter<T> {
    detect: DetectorFunction;
    execute: ((err: unknown) => unknown);
    transmute: TransmuterFunction<T>;
}

Type Parameters

  • T = any

Properties

The function to detect errors.

execute: ((err: unknown) => unknown)

The function to execute the transmuter.

transmute: TransmuterFunction<T>

The function to transmute errors.