@@ -213,25 +213,29 @@ interface ChannelListProps extends ChatContextValue {
213213 */
214214 onMessageNew ?(
215215 thisArg : React . Component < ChannelListProps > ,
216- e : Client . NotificationNewMessageEvent ,
216+ e : Client . Event < Client . NotificationNewMessageEvent > ,
217217 ) : void ;
218218 /** Function that overrides default behaviour when users gets added to a channel */
219219 onAddedToChannel ?(
220220 thisArg : React . Component < ChannelListProps > ,
221- e : Client . NotificationAddedToChannelEvent ,
221+ e : Client . Event < Client . NotificationAddedToChannelEvent > ,
222222 ) : void ;
223223 /** Function that overrides default behaviour when users gets removed from a channel */
224224 onRemovedFromChannel ?(
225225 thisArg : React . Component < ChannelListProps > ,
226- e : Client . NotificationRemovedFromChannelEvent ,
226+ e : Client . Event < Client . NotificationRemovedFromChannelEvent > ,
227227 ) : void ;
228228 onChannelUpdated ?(
229229 thisArg : React . Component < ChannelListProps > ,
230- e : Client . ChannelUpdatedEvent ,
230+ e : Client . Event < Client . ChannelUpdatedEvent > ,
231231 ) : void ;
232232 onChannelDeleted ?(
233233 thisArg : React . Component < ChannelListProps > ,
234- e : Client . ChannelDeletedEvent ,
234+ e : Client . Event < Client . ChannelDeletedEvent > ,
235+ ) : void ;
236+ onChannelTruncated ?(
237+ thisArg : React . Component < ChannelListProps > ,
238+ e : Client . Event < Client . ChannelTruncatedEvent > ,
235239 ) : void ;
236240 // TODO: Create proper interface for followings in chat js client.
237241 /** Object containing query filters */
0 commit comments