Interface FuncRef<T>

Interface for a function reference that returns a value. Provides methods to call, get, set, and inject code before or after the stored function.

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

Type Parameters

  • T

Methods