Chore: Migrate REST API - sendConfirmationEmail to Typescript (#3807)

This commit is contained in:
Reinaldo Neto 2022-03-02 16:19:34 -03:00 committed by GitHub
parent cb8d4be7eb
commit 1c5f8b1731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ export const forgotPassword = (email: string): any =>
// @ts-ignore
sdk.post('users.forgotPassword', { email });
export const sendConfirmationEmail = (email: string) => sdk.methodCallWrapper('sendConfirmationEmail', email);
export const sendConfirmationEmail = (email: string): Promise<{ message: string; success: boolean }> =>
sdk.methodCallWrapper('sendConfirmationEmail', email);
export const spotlight = (search: string, usernames: string, type: { users: boolean; rooms: boolean }) =>
// RC 0.51.0