@typescript-package/history
Version:
A TypeScript package for tracking the history of values.
36 lines (35 loc) • 781 B
TypeScript
import { History } from '../history.abstract';
/**
* @description
* @export
* @class RedoHistoryPeek
* @template Type
*/
export declare class RedoHistoryPeek<Type> {
private readonly history;
/**
* Creates an instance of `RedoHistoryPeek` child class.
* @constructor
* @param {History<Type>} history
*/
constructor(history: History<Type>);
/**
* @description
* @public
* @param {number} [index=0]
* @returns {(Type | undefined)}
*/
index(index?: number): Type | undefined;
/**
* @description
* @public
* @returns {(Type | undefined)}
*/
last(): Type | undefined;
/**
* @description
* @public
* @returns {(Type | undefined)}
*/
next(): Type | undefined;
}