diff --git a/src/PasswordReset.ts b/src/PasswordReset.ts index 1c6c8744ec..76f54de245 100644 --- a/src/PasswordReset.ts +++ b/src/PasswordReset.ts @@ -53,7 +53,7 @@ export default class PasswordReset { * @param {string} newPassword The new password for the account. * @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked(). */ - public resetPassword(emailAddress, newPassword): Promise { + public resetPassword(emailAddress: string, newPassword: string): Promise { this.password = newPassword; return this.client.requestPasswordEmailToken(emailAddress, this.clientSecret, 1).then((res) => { this.sessionId = res.sid;