From 958b7ef336c95843c436e99aa22fe908f90eb9d7 Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 14 Nov 2022 09:10:03 -0500 Subject: [PATCH] Fix #3635: InputTextarea/InputText proper typescript def --- components/lib/inputtext/inputtext.d.ts | 4 +--- components/lib/inputtextarea/inputtextarea.d.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/lib/inputtext/inputtext.d.ts b/components/lib/inputtext/inputtext.d.ts index 37a14b9bb8..fee3e87437 100644 --- a/components/lib/inputtext/inputtext.d.ts +++ b/components/lib/inputtext/inputtext.d.ts @@ -11,6 +11,4 @@ export interface InputTextProps extends Omit, validatePattern: boolean): void; } -export declare class InputText extends React.Component { - //value?: string; -} +export declare const InputText: React.ForwardRefExoticComponent>; diff --git a/components/lib/inputtextarea/inputtextarea.d.ts b/components/lib/inputtextarea/inputtextarea.d.ts index 67f7d04c0b..9ef001b018 100644 --- a/components/lib/inputtextarea/inputtextarea.d.ts +++ b/components/lib/inputtextarea/inputtextarea.d.ts @@ -10,6 +10,4 @@ export interface InputTextareaProps extends Omit { - value?: string; -} +export declare const InputTextarea: React.ForwardRefExoticComponent>;