@types/react-input-autosize
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -1,4 +0,5 @@ | ||
// Type definitions for react-input-autosize 1.2 | ||
// Type definitions for react-input-autosize 2.0 | ||
// Project: https://github.com/JedWatson/react-input-autosize#readme | ||
// Definitions by: Jason Unger <https://github.com/jsonunger> | ||
// Frank Li <https://github.com/franklixuefei> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -9,17 +10,15 @@ // TypeScript Version: 2.8 | ||
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; |
{ | ||
"name": "@types/react-input-autosize", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for react-input-autosize", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "jsonunger" | ||
}, | ||
{ | ||
"name": "Frank Li", | ||
"url": "https://github.com/franklixuefei", | ||
"githubUsername": "franklixuefei" | ||
} | ||
@@ -23,4 +28,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "959fe559879eeab238df3c7ae9a0901e593585f8b8647f903d2d0d00c91556b1", | ||
"typesPublisherContentHash": "8223ef68c5e9e13dbfda835acc1cb7369aff560fe766adfb3528a53fb60e6180", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 06 Aug 2018 21:55:26 GMT | ||
* Last updated: Sat, 25 Aug 2018 01:04:12 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Jason Unger <https://github.com/jsonunger>. | ||
These definitions were written by Jason Unger <https://github.com/jsonunger>, Frank Li <https://github.com/franklixuefei>. |
3473
19