Socket
Book a DemoInstallSign in
Socket

@types/react-textarea-autosize

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-textarea-autosize - npm Package Compare versions

Comparing version

to
8.0.0

38

react-textarea-autosize/package.json
{
"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!
SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.