diff options
author | Francesco Cioria <firefelix@gmail.com> | 2017-05-19 16:27:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-19 16:27:16 +0200 |
commit | 851fdcf573a3c41c959de4c47f82e417058be608 (patch) | |
tree | 9960ef3dfcf29ade9b93a19abeb8e21fe2abb914 /index.d.ts | |
parent | 50ec3bf950c858c91ee93e1c6ff6003b87691911 (diff) | |
parent | 4b02978ab11a05cfd5ec5e5870be4d1e7ccd9cdf (diff) | |
download | react-autosize-textarea-851fdcf573a3c41c959de4c47f82e417058be608.zip react-autosize-textarea-851fdcf573a3c41c959de4c47f82e417058be608.tar.gz react-autosize-textarea-851fdcf573a3c41c959de4c47f82e417058be608.tar.bz2 |
Merge pull request #47 from buildo/46-typescript_support
#46: typescript support (closes #46)
Diffstat (limited to 'index.d.ts')
-rw-r--r-- | index.d.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..c31d6f5 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,9 @@ +import * as React from 'react'; + +export interface TextareaAutosizeProps extends React.HTMLAttributes<HTMLTextAreaElement> { + maxRows?: number, + onResize?: (e: React.SyntheticEvent<Event>) => void, + innerRef?: (textarea: HTMLTextAreaElement) => void +} + +export default class TextareaAutosize extends React.Component<TextareaAutosizeProps, void> {}
\ No newline at end of file |