vue-web-terminal
Version:
A beautiful web-side command line window plugin (native simulation). 一个漂亮的网页命令行插件(原生模拟)
18 lines (17 loc) • 623 B
TypeScript
import { CmdHistory } from "~/types";
export declare class TerminalStore {
storageKey: string;
maxStoredCommandCountPerInstance: number;
dataMap: Record<string, CmdHistory>;
constructor(key: string, maxStoredCommandCountPerInstance: number);
push(name: string, cmd: string): void;
store(): void;
getData(name: string): CmdHistory;
getLog(name: string): string[];
clear(name: string): void;
clearAll(): void;
getIdx(name: string): number;
setIdx(name: string, idx: number): void;
}
export declare function initStore(): void;
export declare function getStore(): TerminalStore;