Skip to content

Commit 96e8f65

Browse files
authored
Merge pull request #1864 from matrix-org/palid/dx/typescriptify-password-reset
Add necessary changes for PasswordReset migration
2 parents e30dad7 + 8fb036b commit 96e8f65

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/client.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ interface IMessagesResponse {
521521
state: IStateEvent[];
522522
}
523523

524-
interface IRequestTokenResponse {
524+
export interface IRequestTokenResponse {
525525
sid: string;
526526
submit_url?: string;
527527
}
@@ -5078,7 +5078,7 @@ export class MatrixClient extends EventEmitter {
50785078
email: string,
50795079
clientSecret: string,
50805080
sendAttempt: number,
5081-
nextLink: string,
5081+
nextLink?: string,
50825082
): Promise<IRequestTokenResponse> {
50835083
return this.requestTokenFromEndpoint(
50845084
"/account/password/email/requestToken",
@@ -7991,10 +7991,7 @@ export class MatrixClient extends EventEmitter {
79917991
autoJoinOnly?: boolean,
79927992
limit?: number,
79937993
batch?: string,
7994-
): Promise<{
7995-
rooms: ISpaceSummaryRoom[];
7996-
events: ISpaceSummaryEvent[];
7997-
}> {
7994+
): Promise<{rooms: ISpaceSummaryRoom[], events: ISpaceSummaryEvent[]}> {
79987995
const path = utils.encodeUri("/rooms/$roomId/spaces", {
79997996
$roomId: roomId,
80007997
});

0 commit comments

Comments
 (0)