diff --git a/types/react-textarea-autosize/index.d.ts b/types/react-textarea-autosize/index.d.ts index 90fa858dfb..cf03a7a26a 100644 --- a/types/react-textarea-autosize/index.d.ts +++ b/types/react-textarea-autosize/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for react-textarea-autosize 4.3.0 // Project: https://github.com/andreypopp/react-textarea-autosize -// Definitions by: Alexey Svetliakov , Jerry Zou +// Definitions by: Alexey Svetliakov , +// Jerry Zou +// Rahul Sagore // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -49,7 +51,7 @@ declare module "react-textarea-autosize" { /** * Allows an owner to retrieve the DOM node. */ - inputRef?: (node: HTMLTextAreaElement) => void; + inputRef?: ((node: HTMLTextAreaElement) => void) | React.RefObject; } /**