From 087f9d330adbd12586da9827af66c71c6ac7462f Mon Sep 17 00:00:00 2001 From: Jordan Becker Date: Fri, 22 Mar 2024 13:55:53 +0100 Subject: [PATCH] fix(typing): use generic TMessage on GiftedChat props --- src/GiftedChat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index eaa351ae6..345742284 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -54,7 +54,7 @@ dayjs.extend(localizedFormat) export interface GiftedChatProps { /* Message container ref */ - messageContainerRef?: React.RefObject> + messageContainerRef?: React.RefObject> /* text input ref */ textInputRef?: React.RefObject /* Messages to display */ @@ -229,7 +229,7 @@ export interface GiftedChatState { } function GiftedChat( - props: GiftedChatProps, + props: GiftedChatProps, ) { const { messages = [],