1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | declare module "react-textarea-autosize" {
|
10 | import * as React from "react";
|
11 |
|
12 | |
13 |
|
14 |
|
15 | export interface TextareaAutosizeProps extends React.HTMLProps<HTMLTextAreaElement> {
|
16 | |
17 |
|
18 |
|
19 | value?: string | undefined;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
|
25 | /**
|
26 | * Callback on height change
|
27 | * @param height
|
28 | */
|
29 | onHeightChange?: ((height: number) => void) | undefined;
|
30 | /**
|
31 | * Try to cache DOM measurements performed by component so that we don't
|
32 | * touch DOM when it's not needed.
|
33 | *
|
34 | * This optimization doesn't work if we dynamically style `<textarea />`
|
35 | * component.
|
36 | * @default false
|
37 | */
|
38 | useCacheForDOMMeasurements?: boolean | undefined;
|
39 | /**
|
40 | * Minimal number of rows to show.
|
41 | */
|
42 | rows?: number | undefined;
|
43 | /**
|
44 | * Alias for `rows`.
|
45 | */
|
46 | minRows?: number | undefined;
|
47 | /**
|
48 | * Maximum number of rows to show.
|
49 | */
|
50 | maxRows?: number | undefined;
|
51 | /**
|
52 | * Allows an owner to retrieve the DOM node.
|
53 | */
|
54 | inputRef?: ((node: HTMLTextAreaElement) => void) | React.RefObject<HTMLTextAreaElement> | undefined;
|
55 | }
|
56 |
|
57 | /**
|
58 | * <TextareaAutosize/>
|
59 | */
|
60 | export default class TextareaAutosize extends React.Component<TextareaAutosizeProps> { }
|
61 |
|
62 | }
|
63 |
|
\ | No newline at end of file |