Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5a1633d

Browse files
authored
Merge pull request #6638 from matrix-org/palid/dx/typescriptify-password-reset
Add missing types
2 parents 9398741 + e5b1cff commit 5a1633d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PasswordReset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class PasswordReset {
5353
* @param {string} newPassword The new password for the account.
5454
* @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked().
5555
*/
56-
public resetPassword(emailAddress, newPassword): Promise<IRequestTokenResponse> {
56+
public resetPassword(emailAddress: string, newPassword: string): Promise<IRequestTokenResponse> {
5757
this.password = newPassword;
5858
return this.client.requestPasswordEmailToken(emailAddress, this.clientSecret, 1).then((res) => {
5959
this.sessionId = res.sid;

0 commit comments

Comments
 (0)