Skip to content

Commit 318825a

Browse files
fix: [REACT-350] make archived_at & pinned_at nullable (#1515)
## Description of the changes, What, Why and How? Extend `ChannelMemberResponse`'s `archived_at` & `pinned_at` properties with `null`.
1 parent ea7fe99 commit 318825a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export type ChannelMemberUpdates<
353353
export type ChannelMemberResponse<
354354
StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
355355
> = StreamChatGenerics['memberType'] & {
356-
archived_at?: string;
356+
archived_at?: string | null;
357357
ban_expires?: string;
358358
banned?: boolean;
359359
channel_role?: Role;
@@ -363,7 +363,7 @@ export type ChannelMemberResponse<
363363
invited?: boolean;
364364
is_moderator?: boolean;
365365
notifications_muted?: boolean;
366-
pinned_at?: string;
366+
pinned_at?: string | null;
367367
role?: string;
368368
shadow_banned?: boolean;
369369
status?: InviteStatus;

0 commit comments

Comments
 (0)