Skip to content

Commit 51c2b52

Browse files
committed
fix: Channel thread type
1 parent 1e396f5 commit 51c2b52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,8 +2516,10 @@ const ChannelWithContext = <
25162516

25172517
export type ChannelProps<
25182518
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
2519-
> = Partial<Omit<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>> &
2520-
Pick<ChannelPropsWithContext<StreamChatGenerics>, 'channel'>;
2519+
> = Partial<Omit<ChannelPropsWithContext<StreamChatGenerics>, 'channel' | 'thread'>> &
2520+
Pick<ChannelPropsWithContext<StreamChatGenerics>, 'channel'> & {
2521+
thread?: MessageType<StreamChatGenerics> | ThreadType<StreamChatGenerics> | null;
2522+
};
25212523

25222524
/**
25232525
*

0 commit comments

Comments
 (0)