File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
components/ChannelList/hooks Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11import 'stream-chat' ;
22
33declare module 'stream-chat' {
4- interface CustomUserData {
5- image ?: string ;
6- }
7-
84 interface CustomChannelData {
95 image ?: string ;
6+ name ?: string ;
107 subtitle ?: string ;
118 }
129}
Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ import uniqBy from 'lodash.uniqby';
44import { MAX_QUERY_CHANNELS_LIMIT } from '../utils' ;
55
66import type {
7+ APIErrorResponse ,
78 Channel ,
89 ChannelFilters ,
910 ChannelOptions ,
1011 ChannelSort ,
12+ ErrorFromResponse ,
1113 StreamChat ,
1214} from 'stream-chat' ;
1315
@@ -106,9 +108,9 @@ export const usePaginatedChannels = (
106108 activeChannelHandler ( newChannels , setChannels ) ;
107109 }
108110 }
109- } catch ( err ) {
110- console . warn ( err ) ;
111- setError ( err as Error ) ;
111+ } catch ( error ) {
112+ console . warn ( error ) ;
113+ setError ( error as ErrorFromResponse < APIErrorResponse > ) ;
112114 }
113115
114116 setQueryInProgress ( null ) ;
You can’t perform that action at this time.
0 commit comments