From ce338c32d857f19373ab8d893b035027a8ce09d8 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 1 Dec 2021 23:58:22 +0300 Subject: [PATCH] Fixed #1836 - For Textarea --- src/components/textarea/Textarea.d.ts | 44 +++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/src/components/textarea/Textarea.d.ts b/src/components/textarea/Textarea.d.ts index eae570060..2737885ca 100755 --- a/src/components/textarea/Textarea.d.ts +++ b/src/components/textarea/Textarea.d.ts @@ -1,11 +1,43 @@ -interface TextareaProps { - modelValue?: string; - autoResize?: boolean; +import { TextareaHTMLAttributes } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; + +export interface TextareaProps extends TextareaHTMLAttributes { + /** + * Value of the component. + */ + modelValue?: string | undefined; + /** + * When present, height of textarea changes as being typed. + */ + autoResize?: boolean | undefined; } -declare class Textarea { - $props: TextareaProps; - $emit(eventName: 'update:modelValue', value: string): this; +export interface TextareaSlots { } +export declare type TextareaEmits = { + /** + * Emitted when the value changes. + * @param {string} value - New value. + */ + 'update:modelValue': (value: string) => void; +} + +declare class Textarea extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + Textarea: GlobalComponentConstructor