Skip to content

Commit

Permalink
Remove Async prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziine committed Oct 15, 2021
1 parent ebba72c commit 7c020e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import {
CampaignData,
OGAttachment,
TaskStatus,
AsyncDeleteChannelsResponse,
DeleteChannelsResponse,
} from './types';

function isString(x: unknown): x is string {
Expand Down Expand Up @@ -3313,10 +3313,10 @@ export class StreamChat<
* @param {string[]} cids Channel CIDs
* @param {boolean} [options.hard_delete] Defines if the channel is hard deleted or not
*
* @return {AsyncDeleteChannelsResponse} Result of the soft deletion, if server-side, it holds the task ID as well
* @return {DeleteChannelsResponse} Result of the soft deletion, if server-side, it holds the task ID as well
*/
async deleteChannels(cids: string[], options: { hard_delete?: boolean } = {}) {
return await this.post<APIResponse & AsyncDeleteChannelsResponse>(
return await this.post<APIResponse & DeleteChannelsResponse>(
this.baseURL + `/channels/delete`,
{ cids, ...options },
);
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ export type TaskResponse = {
task_id: string;
};

export type AsyncDeleteChannelsResponse = {
export type DeleteChannelsResponse = {
result: Record<string, string>;
} & Partial<TaskResponse>;

Expand Down

0 comments on commit 7c020e3

Please sign in to comment.