Skip to content

Commit

Permalink
fix(typing): use generic TMessage on GiftedChat props
Browse files Browse the repository at this point in the history
  • Loading branch information
habovh committed Mar 22, 2024
1 parent ba06287 commit ee51b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GiftedChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export interface GiftedChatState<TMessage extends IMessage = IMessage> {
}

function GiftedChat<TMessage extends IMessage = IMessage>(
props: GiftedChatProps,
props: GiftedChatProps<TMessage>,
) {
const {
messages = [],
Expand Down

0 comments on commit ee51b50

Please sign in to comment.