You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the type definition for Channel.lastMessage seems to be incorrect.
Here's a snippet from node_modules/stream-chat/dist/types/channel.d.ts (version 8.10.1):
/** * lastMessage - return the last message, takes into account that last few messages might not be perfectly sorted * * @return {ReturnType<ChannelState<StreamChatGenerics>['formatMessage']> | undefined} Description */lastMessage(): FormatMessageResponse<StreamChatGenerics>;
(note that the return type is FormatMessageResponse<StreamChatGenerics> whereas it should be FormatMessageResponse<StreamChatGenerics> | undefined – as the JSDoc @returns statement correctly specifies).
The text was updated successfully, but these errors were encountered:
Hi team,
I noticed that the type definition for
Channel.lastMessage
seems to be incorrect.Here's a snippet from
node_modules/stream-chat/dist/types/channel.d.ts
(version8.10.1
):(note that the return type is
FormatMessageResponse<StreamChatGenerics>
whereas it should beFormatMessageResponse<StreamChatGenerics> | undefined
– as the JSDoc@returns
statement correctly specifies).The text was updated successfully, but these errors were encountered: