@types/react-input-autosize
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -11,10 +11,10 @@ // Type definitions for react-input-autosize 2.2 | ||
export interface AutosizeInputProps extends React.InputHTMLAttributes<HTMLInputElement>, React.ClassAttributes<HTMLInputElement> { | ||
inputClassName?: string; | ||
inputRef?: (instance: HTMLInputElement | null) => void; | ||
inputStyle?: React.CSSProperties; | ||
minWidth?: string | number; | ||
onAutosize?: (inputWidth: string | number) => void; | ||
placeholderIsMinWidth?: boolean; | ||
extraWidth?: string | number; | ||
injectStyles?: boolean; | ||
inputClassName?: string | undefined; | ||
inputRef?: ((instance: HTMLInputElement | null) => void) | undefined; | ||
inputStyle?: React.CSSProperties | undefined; | ||
minWidth?: string | number | undefined; | ||
onAutosize?: ((inputWidth: string | number) => void) | undefined; | ||
placeholderIsMinWidth?: boolean | undefined; | ||
extraWidth?: string | number | undefined; | ||
injectStyles?: boolean | undefined; | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "@types/react-input-autosize", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "TypeScript definitions for react-input-autosize", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-autosize", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "2bc216dde5412a69c9ce2b44a76d8483279e182c81d9d80ac2d7eb1eb756462d", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "d5f25ff36f0f961c30c34d0be5fc4e821a956d2f7d707fa568d34301c82f8e98", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,35 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-autosize. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-input-autosize/index.d.ts) | ||
````ts | ||
// Type definitions for react-input-autosize 2.2 | ||
// 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 | ||
// TypeScript Version: 2.8 | ||
import * as React from 'react'; | ||
export interface AutosizeInputProps extends React.InputHTMLAttributes<HTMLInputElement>, React.ClassAttributes<HTMLInputElement> { | ||
inputClassName?: string | undefined; | ||
inputRef?: ((instance: HTMLInputElement | null) => void) | undefined; | ||
inputStyle?: React.CSSProperties | undefined; | ||
minWidth?: string | number | undefined; | ||
onAutosize?: ((inputWidth: string | number) => void) | undefined; | ||
placeholderIsMinWidth?: boolean | undefined; | ||
extraWidth?: string | number | undefined; | ||
injectStyles?: boolean | undefined; | ||
} | ||
declare class AutosizeInput extends React.Component<AutosizeInputProps> { | ||
copyInputStyles(): void; | ||
getInput(): HTMLInputElement; | ||
} | ||
export default AutosizeInput; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 20 Jul 2020 21:22:10 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:33:45 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +44,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5130
0
47