From 8adf5b467d395e4c344c8885edc8b85a42a19717 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Tue, 16 Feb 2021 10:43:32 +0000 Subject: [PATCH] chore: upgrade TypeScript to 4.1.5 (#6889) We were blocked on doing this because API Extractor didn't support it, but now it does, so we can bump TS and the API tooling in one go. None of the breaking changes in TS4 cause us any issues. --- package.json | 6 +++--- test/navigation.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f574ed82f47..dfcdd64737c 100644 --- a/package.json +++ b/package.json @@ -69,8 +69,8 @@ "devDependencies": { "@commitlint/cli": "^11.0.0", "@commitlint/config-conventional": "^11.0.0", - "@microsoft/api-documenter": "7.9.7", - "@microsoft/api-extractor": "7.10.4", + "@microsoft/api-documenter": "^7.12.7", + "@microsoft/api-extractor": "^7.13.1", "@types/debug": "0.0.31", "@types/mime": "^2.0.0", "@types/mocha": "^7.0.2", @@ -107,7 +107,7 @@ "standard-version": "^9.0.0", "text-diff": "^1.0.1", "ts-node": "^9.0.0", - "typescript": "3.9.5" + "typescript": "^4.1.5" }, "husky": { "hooks": { diff --git a/test/navigation.spec.ts b/test/navigation.spec.ts index ccf4f5dc6b1..b8ff839e068 100644 --- a/test/navigation.spec.ts +++ b/test/navigation.spec.ts @@ -613,7 +613,7 @@ describe('navigation', function () { server.PREFIX + '/frames/one-frame.html' ); const frame = await utils.waitEvent(page, 'frameattached'); - await new Promise((fulfill) => { + await new Promise((fulfill) => { page.on('framenavigated', (f) => { if (f === frame) fulfill(); });