refactor: TypeScript 3.7 fixes. (#34372)
This PR fixes more TypeScript 3.7 compilation issues. PR Close #34372
This commit is contained in:
parent
1eae7c81e9
commit
dfecca29da
@ -54,7 +54,8 @@ the server-rendered app can be properly bootstrapped into a client app.`);
|
|||||||
try {
|
try {
|
||||||
const callbackResult = callback();
|
const callbackResult = callback();
|
||||||
if (ɵisPromise(callbackResult)) {
|
if (ɵisPromise(callbackResult)) {
|
||||||
asyncPromises.push(callbackResult);
|
// TODO: in TS3.7, callbackResult is void.
|
||||||
|
asyncPromises.push(callbackResult as any);
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user