first commit

This commit is contained in:
douboer@gmail.com
2026-03-03 13:23:14 +08:00
commit 3b7c1d558a
161 changed files with 28120 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/**
* Interface: History
*/
export interface IHistory {
/**
* Array containing a copy of entries
*/
list: string[];
/**
* Getter: access one entry at a time (forward)
*/
next(): string;
/**
* Getter: access one entry at a time (backwards)
*/
previous(): string;
/**
* Insert an input string to the stack
*
* Returns `false` if the `input` is the same as the previous entry
*
* @returns boolean
*/
add(input: string): void;
/**
* Empty the stack of entries
*/
clear(): void;
}