@types/react-textarea-autosize
Advanced tools
Comparing version
{ | ||
"name": "@types/react-textarea-autosize", | ||
"version": "4.3.6", | ||
"description": "TypeScript definitions for react-textarea-autosize", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-textarea-autosize", | ||
"license": "MIT", | ||
"contributors": [ | ||
{ | ||
"name": "Alexey Svetliakov", | ||
"url": "https://github.com/asvetliakov", | ||
"githubUsername": "asvetliakov" | ||
}, | ||
{ | ||
"name": "Jerry Zou", | ||
"url": "https://github.com/zry656565", | ||
"githubUsername": "zry656565" | ||
}, | ||
{ | ||
"name": "Rahul Sagore", | ||
"url": "https://github.com/Rahul-Sagore", | ||
"githubUsername": "Rahul-Sagore" | ||
} | ||
], | ||
"version": "8.0.0", | ||
"typings": null, | ||
"description": "Stub TypeScript definitions entry for react-textarea-autosize, which provides its own types definitions", | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/react-textarea-autosize" | ||
}, | ||
"scripts": {}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@types/react": "*" | ||
}, | ||
"typesPublisherContentHash": "5ef25a790c46d6e2a05751f857069a6ec624d25a09ac8b992b8259569529a364", | ||
"typeScriptVersion": "3.6" | ||
"react-textarea-autosize": "*" | ||
} | ||
} |
@@ -1,82 +0,3 @@ | ||
# Installation | ||
> `npm install --save @types/react-textarea-autosize` | ||
This is a stub types definition for @types/react-textarea-autosize (https://github.com/Andarist/react-textarea-autosize#readme). | ||
# Summary | ||
This package contains type definitions for react-textarea-autosize (https://github.com/andreypopp/react-textarea-autosize). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-textarea-autosize. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-textarea-autosize/index.d.ts) | ||
````ts | ||
// Type definitions for react-textarea-autosize 4.3.0 | ||
// Project: https://github.com/andreypopp/react-textarea-autosize | ||
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>, | ||
// Jerry Zou <https://github.com/zry656565> | ||
// Rahul Sagore <https://github.com/Rahul-Sagore> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
declare module "react-textarea-autosize" { | ||
import * as React from "react"; | ||
/** | ||
* <TextareaAutosize/> properties | ||
*/ | ||
export interface TextareaAutosizeProps extends React.HTMLProps<HTMLTextAreaElement> { | ||
/** | ||
* Current textarea value | ||
*/ | ||
value?: string | undefined; | ||
/** | ||
* Callback on value change | ||
* @param event | ||
*/ | ||
onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined; | ||
/** | ||
* Callback on height change | ||
* @param height | ||
*/ | ||
onHeightChange?: ((height: number) => void) | undefined; | ||
/** | ||
* Try to cache DOM measurements performed by component so that we don't | ||
* touch DOM when it's not needed. | ||
* | ||
* This optimization doesn't work if we dynamically style `<textarea />` | ||
* component. | ||
* @default false | ||
*/ | ||
useCacheForDOMMeasurements?: boolean | undefined; | ||
/** | ||
* Minimal number of rows to show. | ||
*/ | ||
rows?: number | undefined; | ||
/** | ||
* Alias for `rows`. | ||
*/ | ||
minRows?: number | undefined; | ||
/** | ||
* Maximum number of rows to show. | ||
*/ | ||
maxRows?: number | undefined; | ||
/** | ||
* Allows an owner to retrieve the DOM node. | ||
*/ | ||
inputRef?: ((node: HTMLTextAreaElement) => void) | React.RefObject<HTMLTextAreaElement> | undefined; | ||
} | ||
/** | ||
* <TextareaAutosize/> | ||
*/ | ||
export default class TextareaAutosize extends React.Component<TextareaAutosizeProps> { } | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 18:31:47 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Alexey Svetliakov](https://github.com/asvetliakov), [Jerry Zou](https://github.com/zry656565), and [Rahul Sagore](https://github.com/Rahul-Sagore). | ||
react-textarea-autosize provides its own type definitions, so you don't need @types/react-textarea-autosize installed! |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1751
-75.84%3
-25%0
-100%2
100%1
Infinity%1
Infinity%3
-96.39%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed