UNPKG

@typescript-package/history

Version:

A TypeScript package for tracking the history of values.

33 lines (32 loc) 709 B
import { History } from "../history.abstract"; import { RedoHistoryPeek } from "./redo-history-peek.class"; import { UndoHistoryPeek } from "./undo-history-peek.class"; /** * @description * @export * @class HistoryPeek * @template Type */ export declare class HistoryPeek<Type> { #private; /** * @description * @public * @readonly * @type {*} */ get redo(): RedoHistoryPeek<Type>; /** * @description * @public * @readonly * @type {*} */ get undo(): UndoHistoryPeek<Type>; /** * Creates an instance of `HistoryPeek`. * @constructor * @param {History<Type>} history */ constructor(history: History<Type>); }