refactor: ensure zone.js can be built with typescript strict flag (#30993)
As part of FW-1265, the `zone.js` package is made compatible with the TypeScript `--strict` flag. Read more about the strict flag [here](https://www.typescriptlang.org/docs/handbook/compiler-options.html) PR Close #30993
This commit is contained in:

committed by
Miško Hevery

parent
10a1e1974b
commit
60f58bf051
@ -247,9 +247,9 @@ describe('AsyncTestZoneSpec', function() {
|
||||
const asyncTest: any = (Zone as any)[Zone.__symbol__('asyncTest')];
|
||||
|
||||
function wrapAsyncTest(fn: Function, doneFn?: Function) {
|
||||
return function(done: Function) {
|
||||
return function(this: unknown, done: Function) {
|
||||
const asyncWrapper = asyncTest(fn);
|
||||
return asyncWrapper.apply(this, [function() {
|
||||
return asyncWrapper.apply(this, [function(this: unknown) {
|
||||
if (doneFn) {
|
||||
doneFn();
|
||||
}
|
||||
|
Reference in New Issue
Block a user