Skip to content

Commit

Permalink
Fixing typescript for translateMessage endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Jun 23, 2020
1 parent adddbeb commit c9aea32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/stream-chat/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export class StreamChat {
deleteChannelType(channelType: string): Promise<DeleteChannelTypeAPIResponse>;
listChannelTypes(): Promise<ListChannelTypesAPIResponse>;

translateMessage(messageId: string, language: string): Promise<GetMessageAPIResponse>;
updateMessage(message: Message, user: string | User): Promise<UpdateMessageAPIResponse>;
deleteMessage(
messageID: string,
Expand Down Expand Up @@ -469,7 +470,6 @@ export class Channel {
hide(userId?: string, clearHistory?: boolean): Promise<APIResponse>;
show(userId?: string): Promise<APIResponse>;
getMessagesById(messageIds: string[]): Promise<GetMultipleMessagesAPIResponse>;
translateMessage(messageId: string, language: string): Promise<GetMessageAPIResponse>;

mute(options?: object): Promise<MuteChannelAPIResponse>;
unmute(options?: object): Promise<UnmuteAPIResponse>;
Expand Down

0 comments on commit c9aea32

Please sign in to comment.