Interface IHistory<T>

interface IHistory<T> {
    addWatch(id, fn): boolean;
    canRedo(): boolean;
    canUndo(): boolean;
    clear(): void;
    deref(): T;
    notifyWatches(oldState, newState): void;
    record(): void;
    redo(): undefined | T;
    release(opt?): boolean;
    removeWatch(id): boolean;
    reset(val): T;
    resetIn(path, val): T;
    resetIn<A>(path, val): T;
    resetIn<A, B>(path, val): T;
    resetIn<A, B, C>(path, val): T;
    resetIn<A, B, C, D>(path, val): T;
    resetIn<A, B, C, D, E>(path, val): T;
    resetIn<A, B, C, D, E, F>(path, val): T;
    resetInUnsafe(path, val): T;
    swap(fn, ...args): T;
    swapIn<A>(path, fn, ...args): T;
    swapIn<A>(path, fn, ...args): T;
    swapIn<A, B>(path, fn, ...args): T;
    swapIn<A, B, C>(path, fn, ...args): T;
    swapIn<A, B, C, D>(path, fn, ...args): T;
    swapIn<A, B, C, D, E>(path, fn, ...args): T;
    swapIn<A, B, C, D, E, F>(path, fn, ...args): T;
    swapInUnsafe(path, fn, ...args): T;
    undo(): undefined | T;
}

Type Parameters

  • T

Hierarchy (view full)

Implemented by

Methods

  • Parameters

    • id: string
    • fn: Watch<T>

    Returns boolean

  • Returns void

  • Returns wrapped value.

    Returns T

  • Parameters

    • oldState: T
    • newState: T

    Returns void

  • Parameters

    • Optional opt: any

    Returns boolean

  • Parameters

    • id: string

    Returns boolean

Generated using TypeDoc