Skip to content

Commit

Permalink
Fix #3172: InputTextArea/InputText typescript updates (#3186)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 25, 2022
1 parent dc63ed1 commit 354e1c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions components/lib/inputtext/inputtext.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import TooltipOptions from '../tooltip/tooltipoptions';
import { KeyFilterType } from '../keyfilter';
import TooltipOptions from '../tooltip/tooltipoptions';

export interface InputTextProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onInput' | 'ref'> {
keyfilter?: KeyFilterType;
Expand All @@ -11,7 +11,4 @@ export interface InputTextProps extends Omit<React.DetailedHTMLProps<React.Input
children?: React.ReactNode;
}

export declare class InputText extends React.Component<InputTextProps, any> {
public getElement(): HTMLInputElement;
public getInput(): HTMLInputElement;
}
export declare class InputText extends React.Component<InputTextProps, any> {}
2 changes: 1 addition & 1 deletion components/lib/inputtextarea/inputtextarea.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import TooltipOptions from '../tooltip/tooltipoptions';

export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'ref'> {
export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, 'ref'> {
autoResize?: boolean;
tooltip?: string;
tooltipOptions?: TooltipOptions;
Expand Down

0 comments on commit 354e1c7

Please sign in to comment.