From 496d8b21979e56ec137ad938981f70ea2539b913 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 16:46:32 +0300 Subject: [PATCH] Fixed #1836 - For InputText --- src/components/inputtext/InputText.d.ts | 39 +++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/src/components/inputtext/InputText.d.ts b/src/components/inputtext/InputText.d.ts index be08ab1eb..ad025b845 100755 --- a/src/components/inputtext/InputText.d.ts +++ b/src/components/inputtext/InputText.d.ts @@ -1,10 +1,39 @@ -interface InputTextProps { - modelValue?: string; +import { InputHTMLAttributes } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +export interface InputTextProps extends InputHTMLAttributes { + /** + * Value of the component. + */ + modelValue?: string | undefined; } -declare class InputText { - $props: InputTextProps; - $emit(eventName: 'update:modelValue', value: string | null): this; +export interface InputTextSlots { } +export declare type InputTextEmits = { + /** + * Emitted when the value changes. + * @param {string} value - New value. + */ + 'update:modelValue': (value: string | undefined) => void; +} + +declare class InputText extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + InputText: GlobalComponentConstructor + } +} + +/** + * + * InputText renders a text field to enter data. + * + * Demos: + * + * - [InputText](https://www.primefaces.org/primevue/showcase/#/inputtext) + * + */ export default InputText;