Update dependency typescript to v5 (#10532)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot] 2023-04-06 13:17:50 +01:00 committed by GitHub
parent 6c39aa29e2
commit 0ea2ff85d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 34 deletions

View file

@ -15,8 +15,6 @@ limitations under the License.
*/
import "matrix-js-sdk/src/@types/global"; // load matrix-js-sdk's type extensions first
// Load types for the WG CSS Font Loading APIs https://github.com/Microsoft/TypeScript/issues/13569
import "@types/css-font-loading-module";
import "@types/modernizr";
import ContentMessages from "../ContentMessages";

View file

@ -121,7 +121,7 @@ export class RelationsHelper extends TypedEventEmitter<RelationsHelperEvent, Eve
limit: 50,
},
);
nextBatch = response?.nextBatch;
nextBatch = response?.nextBatch ?? undefined;
response?.events.forEach((e) => this.emit(RelationsHelperEvent.Add, e));
} while (nextBatch);
}

View file

@ -201,7 +201,7 @@ export default abstract class Exporter {
);
}
prevToken = res.end;
prevToken = res.end ?? null;
}
// Reverse the events so that we preserve the order
for (let i = 0; i < Math.floor(events.length / 2); i++) {