primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
47 lines (44 loc) • 1.33 kB
TypeScript
/**
*
* Terminal is a text based user interface.
*
* [Live Demo](https://www.primereact.org/terminal/)
*
* @module terminal
*
*/
/**
* Custom terminal service options.
*/
export interface TerminalServiceOptions {
/**
* Method to attach an event listener to a specific action.
* @param {'command' | 'response' | 'clear'} action - Custom listener.
* @param {*} fn - Custom listener.
*/
on(action: 'command' | 'response' | 'clear', fn: any): void;
/**
* Method to emit an event for a specific action.
* @param {'command' | 'response' | 'clear'} action - Custom listener.
* @param {*} params - Custom listener.
*/
emit(action: 'command' | 'response' | 'clear', params?: any): void;
/**
* Method to detach an event listener from a specific action.
* @param {'command' | 'response' | 'clear'} action - Custom listener.
* @param {*} fn - Custom listener.
*/
off(action: 'command' | 'response' | 'clear', fn: any): void;
}
/**
* **PrimeReact - TerminalService**
*
* _Terminal is a text based user interface._
*
* [Live Demo](https://www.primereact.org/terminal/)
* --- ---
* 
*
* @group Component
*/
export declare const TerminalService: TerminalServiceOptions;