diff --git a/types/stream-chat/index.d.ts b/types/stream-chat/index.d.ts index 8e8ae296f..12388f115 100644 --- a/types/stream-chat/index.d.ts +++ b/types/stream-chat/index.d.ts @@ -55,9 +55,9 @@ export interface Event { type: T; message?: MessageResponse; reaction?: ReactionResponse; - channel?: Channel; - member?: User; - user?: User; + channel?: ChannelResponse; + member?: ChannelMemberResponse; + user?: UserResponse; user_id?: string; me?: OwnUserResponse; watcher_count?: number; diff --git a/types/stream-chat/test-stream-chat.ts b/types/stream-chat/test-stream-chat.ts index 0b4b76df3..150e9124a 100644 --- a/types/stream-chat/test-stream-chat.ts +++ b/types/stream-chat/test-stream-chat.ts @@ -77,8 +77,8 @@ const event = { updated_at: '', score: 10, }, - member: { id: 'john' }, - user: { id: 'john' }, + member: { user_id: 'john' }, + user: { id: 'john', online: true }, unread_count: 3, online: true, };