@typescript-package/history
Version:
A lightweight TypeScript package for tracking the history of values.
14 lines (13 loc) • 629 B
TypeScript
import { Data, DataCore } from '@typescript-package/data';
import { HistoryAppend } from '../core';
/**
* @description Manages the undo history with append mechanism.
* @export
* @class UndoHistory
* @template [Value=any] The type of elements stored in the history.
* @template {number} [Size=number] The maximum size of the history.
* @template {DataCore<Value[]>} [DataType=Data<Value[]>]
* @extends {HistoryAppend<Value, Size, DataType>}
*/
export declare class UndoHistory<Value = any, Size extends number = number, DataType extends DataCore<Value[]> = Data<Value[]>> extends HistoryAppend<Value, Size, DataType> {
}