Skip to content

Commit ed96de3

Browse files
author
Dan Carbonell
committed
adjust additional textarea props types
1 parent 49c2e74 commit ed96de3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/components/MessageInput/MessageInputFlat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ MessageInputFlat.propTypes = {
119119
/** enable/disable firing the typing event */
120120
publishTypingEvent: PropTypes.bool,
121121
/**
122-
* Any additional attrubutes that you may want to add for underlying HTML textarea element.
122+
* Any additional attributes that you may want to add for underlying HTML textarea element.
123123
*/
124-
additionalTextareaProps: PropTypes.object,
124+
additionalTextareaProps: /** @type {PropTypes.Validator<React.TextareaHTMLAttributes<import('types').AnyType>>} */ (PropTypes.object),
125125
/**
126126
* Override the default triggers of the ChatAutoComplete component
127127
*/

src/components/MessageInput/MessageInputLarge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ MessageInputLarge.propTypes = {
164164
/** enable/disable firing the typing event */
165165
publishTypingEvent: PropTypes.bool,
166166
/**
167-
* Any additional attrubutes that you may want to add for underlying HTML textarea element.
167+
* Any additional attributes that you may want to add for underlying HTML textarea element.
168168
*/
169-
additionalTextareaProps: PropTypes.object,
169+
additionalTextareaProps: /** @type {PropTypes.Validator<React.TextareaHTMLAttributes<import('types').AnyType>>} */ (PropTypes.object),
170170
/**
171171
* Override the default triggers of the ChatAutoComplete component
172172
*/

src/components/MessageInput/MessageInputSimple.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ MessageInputSimple.propTypes = {
7575
/** enable/disable firing the typing event */
7676
publishTypingEvent: PropTypes.bool,
7777
/**
78-
* Any additional attrubutes that you may want to add for underlying HTML textarea element.
78+
* Any additional attributes that you may want to add for underlying HTML textarea element.
7979
*/
80-
additionalTextareaProps: PropTypes.object,
80+
additionalTextareaProps: /** @type {PropTypes.Validator<React.TextareaHTMLAttributes<import('types').AnyType>>} */ (PropTypes.object),
8181
/**
8282
* Override the default triggers of the ChatAutoComplete component
8383
*/

src/components/MessageInput/MessageInputSmall.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ MessageInputSmall.propTypes = {
120120
/** enable/disable firing the typing event */
121121
publishTypingEvent: PropTypes.bool,
122122
/**
123-
* Any additional attrubutes that you may want to add for underlying HTML textarea element.
123+
* Any additional attributes that you may want to add for underlying HTML textarea element.
124124
*/
125-
additionalTextareaProps: PropTypes.object,
125+
additionalTextareaProps: /** @type {PropTypes.Validator<React.TextareaHTMLAttributes<import('types').AnyType>>} */ (PropTypes.object),
126126
/**
127127
* Override the default triggers of the ChatAutoComplete component
128128
*/

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ export interface MessageInputProps {
707707
* }}
708708
* />
709709
*/
710-
additionalTextareaProps?: object;
710+
additionalTextareaProps?: React.TextareaHTMLAttributes;
711711
/** Message object. If defined, the message passed will be edited, instead of a new message being created */
712712
message?: Client.MessageResponse;
713713
/** Callback to clear editing state in parent component */

0 commit comments

Comments
 (0)