Skip to content

Commit

Permalink
fix: fix blockuser() vars naming (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeadi authored Jun 4, 2024
1 parent 8319e36 commit d06acaa
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -697,27 +697,23 @@ export type MuteUserResponse<StreamChatGenerics extends ExtendableGenerics = Def
own_user?: OwnUserResponse<StreamChatGenerics>;
};

export type BlockUserAPIResponse = APIResponse & {
blocks: BlockUserResponse[];
};
export type BlockUserResponse = APIResponse & {
blocked_at: string;
blocked_by_user_id: string;
blocked_user_id: string;
};

export type BlockUserAPIResponse = APIResponse & {
blocked_users: BlockUserResponse[];
};

export type GetBlockedUsersAPIResponse = APIResponse & {
blocks: BlockedUser[];
blocks: BlockedUserDetails[];
};
export type BlockedUser = APIResponse & {
export type BlockedUserDetails = APIResponse & {
blocked_user: UserResponse;
blocked_user_id: string;

created_at: string;

user: UserResponse;

user_id: string;
};

Expand Down

0 comments on commit d06acaa

Please sign in to comment.