Skip to content

Commit 7aa6661

Browse files
committed
build: update to TypeScript 4.1
Updates the TypeScript to 4.1.2, same as the framework repo.
1 parent 6ca1e43 commit 7aa6661

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"tsickle": "0.39.1",
172172
"tslint": "^6.1.3",
173173
"tsutils": "^3.17.1",
174-
"typescript": "4.0.5",
174+
"typescript": "~4.1.2",
175175
"vrsource-tslint-rules": "5.1.1",
176176
"yaml": "^1.10.0"
177177
},

src/cdk/testing/change-detection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function batchChangeDetection<T>(fn: () => Promise<T>, triggerBeforeAndAft
7575
if (triggerBeforeAndAfter) {
7676
await new Promise(resolve => autoChangeDetectionSubject.next({
7777
isDisabled: true,
78-
onDetectChangesNow: resolve,
78+
onDetectChangesNow: resolve as () => void,
7979
}));
8080
// The function passed in may throw (e.g. if the user wants to make an expectation of an error
8181
// being thrown. If this happens, we need to make sure we still re-enable change detection, so
@@ -85,7 +85,7 @@ async function batchChangeDetection<T>(fn: () => Promise<T>, triggerBeforeAndAft
8585
} finally {
8686
await new Promise(resolve => autoChangeDetectionSubject.next({
8787
isDisabled: false,
88-
onDetectChangesNow: resolve,
88+
onDetectChangesNow: resolve as () => void,
8989
}));
9090
}
9191
} else {

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12935,6 +12935,11 @@ typescript@~3.7.2:
1293512935
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae"
1293612936
integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==
1293712937

12938+
typescript@~4.1.2:
12939+
version "4.1.2"
12940+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9"
12941+
integrity sha512-thGloWsGH3SOxv1SoY7QojKi0tc+8FnOmiarEGMbd/lar7QOEd3hvlx3Fp5y6FlDUGl9L+pd4n2e+oToGMmhRQ==
12942+
1293812943
1293912944
version "0.7.17"
1294012945
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.17.tgz#e9ec5f9498b9ec910e7ae3ac626a805c4d09ecac"

0 commit comments

Comments
 (0)