mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Switched to export default
Switched to `export default` because `export =` will report errors for `"module": "esnext"` users.
This commit is contained in:
+9
-11
@@ -6,19 +6,17 @@
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
declare namespace AutosizeInput {
|
||||
interface AutosizeInputProps extends React.InputHTMLAttributes<HTMLInputElement>, React.ClassAttributes<HTMLInputElement> {
|
||||
inputClassName?: string;
|
||||
inputRef?: React.Ref<HTMLInputElement>;
|
||||
inputStyle?: React.CSSProperties;
|
||||
minWidth?: string | number;
|
||||
onAutosize?: (inputWidth: string | number) => void;
|
||||
placeholderIsMinWidth?: boolean;
|
||||
}
|
||||
export interface AutosizeInputProps extends React.InputHTMLAttributes<HTMLInputElement>, React.ClassAttributes<HTMLInputElement> {
|
||||
inputClassName?: string;
|
||||
inputRef?: React.Ref<HTMLInputElement>;
|
||||
inputStyle?: React.CSSProperties;
|
||||
minWidth?: string | number;
|
||||
onAutosize?: (inputWidth: string | number) => void;
|
||||
placeholderIsMinWidth?: boolean;
|
||||
}
|
||||
|
||||
declare class AutosizeInput extends React.Component<AutosizeInput.AutosizeInputProps> {
|
||||
declare class AutosizeInput extends React.Component<AutosizeInputProps> {
|
||||
getInput(): HTMLInputElement;
|
||||
}
|
||||
|
||||
export = AutosizeInput;
|
||||
export default AutosizeInput;
|
||||
|
||||
Reference in New Issue
Block a user