File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2128,18 +2128,18 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
2128
2128
async removeShadowBan ( targetUserID : string , options ?: UnBanUserOptions ) {
2129
2129
return await this . unbanUser ( targetUserID , {
2130
2130
shadow : true ,
2131
- ...options
2131
+ ...options ,
2132
2132
} ) ;
2133
2133
}
2134
2134
async blockUser ( blockedUserID : string , userID ?: string ) {
2135
- return await this . post < BlockUserResponse < StreamChatGenerics > > ( this . baseURL + '/user/block' , {
2135
+ return await this . post < BlockUserResponse > ( this . baseURL + '/user/block' , {
2136
2136
blocked_user_id : blockedUserID ,
2137
2137
...( userID ? { user_id : userID } : { } ) ,
2138
2138
} ) ;
2139
2139
}
2140
2140
2141
2141
async getBlockedUsers ( ) {
2142
- return await this . get < GetBlockedUsersResponse < StreamChatGenerics > > ( this . baseURL + '/user/block' ) ;
2142
+ return await this . get < GetBlockedUsersResponse > ( this . baseURL + '/user/block' ) ;
2143
2143
}
2144
2144
async unBlockUser ( blockedUserID : string ) {
2145
2145
return await this . post < StreamChatGenerics > ( this . baseURL + '/user/unblock' , {
Original file line number Diff line number Diff line change @@ -670,16 +670,16 @@ export type MuteUserResponse<StreamChatGenerics extends ExtendableGenerics = Def
670
670
own_user ?: OwnUserResponse < StreamChatGenerics > ;
671
671
} ;
672
672
673
- export type BlockUserResponse < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = APIResponse & {
673
+ export type BlockUserResponse = APIResponse & {
674
674
blocked_by_user_id : string ;
675
675
blocked_user_id : string ;
676
676
created_at : string ;
677
677
} ;
678
678
679
- export type GetBlockedUsersResponse < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = APIResponse & {
679
+ export type GetBlockedUsersResponse = APIResponse & {
680
680
blocked_users : BlockedUser [ ] ;
681
681
} ;
682
- export type BlockedUser < StreamChatGenerics extends ExtendableGenerics = DefaultGenerics > = APIResponse & {
682
+ export type BlockedUser = APIResponse & {
683
683
blocked_user_id : string ;
684
684
timestamp : string ;
685
685
} ;
You can’t perform that action at this time.
0 commit comments