TerminalService .d.ts updated

pull/3711/head
Tuğçe Küçükoğlu 2023-03-06 10:41:45 +03:00
parent 6a96ccc50c
commit ff6c5f6dc1
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,9 @@
/**
* [Live Demo](https://www.primevue.org/terminal/)
*
* @module terminalservice
*
*/
/**
* Confirmation Service methods.
*
@ -5,17 +11,20 @@
*
*/
export interface TerminalServiceOptions {
/**
* Displays the terminal using the action options.
*/
on: (action: 'command' | 'response' | undefined, fn: any) => void;
/**
* Emits the terminal using the action options.
*/
emit: (action: 'command' | 'response' | undefined, params?: any) => void;
/**
* Closes the terminal using the action options.
*/
off: (action: 'command' | 'response' | undefined, fn: any) => void;
}
declare const TerminalService: TerminalServiceOptions;
/**
* [Live Demo](https://www.primevue.org/terminal/)
*
* @module terminalservice
*
*/
export default TerminalService;

View File

@ -1,5 +1,5 @@
<template>
<DocComponent title="Vue Terminal Component" header="Terminal" description="Terminal is a text based user interface." :componentDocs="docs" :apiDocs="['Terminal']" />
<DocComponent title="Vue Terminal Component" header="Terminal" description="Terminal is a text based user interface." :componentDocs="docs" :apiDocs="['Terminal', 'TerminalService']" />
</template>
<script>