Interface ArgActionRef<T>

Interface for an action reference that accepts an argument. Provides methods to call with an argument, get, set, and inject code before or after the stored function.

interface ArgActionRef<T> {
    append(fn: (arg: T) => void): void;
    call(arg: T): void;
    get(): (arg: T) => void;
    prepend(fn: (arg: T) => void): void;
    set(fn: (arg: T) => void): void;
}

Type Parameters

  • T

Methods