@@ -12,7 +12,9 @@ import * as SeamlessImmutable from 'seamless-immutable';
1212//
1313//================================================================================================
1414//================================================================================================
15- declare function withChatContext ( ) : React . FC ;
15+ declare function withChatContext < T > (
16+ OriginalComponent : React . ElementType < T > ,
17+ ) : React . ElementType < T > ;
1618export interface ChatContext extends React . Context < ChatContextValue > { }
1719export interface ChatContextValue {
1820 client ?: Client . StreamChat ;
@@ -25,7 +27,9 @@ export interface ChatContextValue {
2527 connectionRecovering ?: boolean ;
2628}
2729
28- declare function withSuggestionsContext ( ) : React . FC ;
30+ declare function withSuggestionsContext < T > (
31+ OriginalComponent : React . ElementType < T > ,
32+ ) : React . ElementType < T > ;
2933export interface SuggestionsContext
3034 extends React . Context < SuggestionsContextValue > { }
3135export interface SuggestionsContextValue {
@@ -47,7 +51,9 @@ export interface SuggestionsContextValue {
4751 updateSuggestions ?( suggestions : Array < object > ) : void ;
4852}
4953
50- declare function withChannelContext ( ) : React . FC ;
54+ declare function withChannelContext < T > (
55+ OriginalComponent : React . ElementType < T > ,
56+ ) : React . ElementType < T > ;
5157export interface ChannelContext extends React . Context < ChannelContextValue > { }
5258export interface ChannelContextValue {
5359 Message ?: React . ElementType < MessageUIComponentProps > ;
0 commit comments