From f30e8bcafb41ebab106200522b7726b14ffb8b27 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 23:57:47 +0300 Subject: [PATCH] Fixed #1836 - For Terminal --- src/components/terminal/Terminal.d.ts | 41 +++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/src/components/terminal/Terminal.d.ts b/src/components/terminal/Terminal.d.ts index c7cf4808e..268e14ec6 100755 --- a/src/components/terminal/Terminal.d.ts +++ b/src/components/terminal/Terminal.d.ts @@ -1,10 +1,41 @@ -interface TerminalProps { - welcomeMessage?: string; - prompt?: string; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +export interface TerminalProps { + /** + * Initial text to display on terminal. + */ + welcomeMessage?: string | undefined; + /** + * Prompt text for each command. + */ + prompt?: string | undefined; } -declare class Terminal { - $props: TerminalProps; +export interface TerminalSlots { } +export declare type TerminalEmits = { +} + +declare class Terminal extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + Terminal: GlobalComponentConstructor + } +} + +/** + * + * Terminal is a text based user interface. + * + * Helper API: + * + * - TerminalService + * + * Demos: + * + * - [Terminal](https://www.primefaces.org/primevue/showcase/#/terminal) + * + */ export default Terminal;