Files
terminal-lab/xterminal/source/interface.ts
douboer@gmail.com 3b7c1d558a first commit
2026-03-03 13:23:14 +08:00

29 lines
583 B
TypeScript

import type { IInputInterface } from "./input/interface";
import type { IOutputInterface } from "./output/interface";
import type { IHistory } from "./history/interface";
/**
* Terminal State
*/
export type ITerminalState = {
/**
* Input component for the terminal
*/
input: IInputInterface;
/**
* Output component for the terminal
*/
output: IOutputInterface;
/**
* History: store of inputs
*/
history: IHistory;
/**
* Autocomplete function invoked on TAB key
*/
completer?: (data: string) => string;
};