refactor: TypeScript 3.7 fixes. (#34372)

This PR fixes more TypeScript 3.7 compilation issues.

PR Close #34372
This commit is contained in:
Martin Probst 2019-12-09 14:25:15 +01:00 committed by Kara Erickson
parent 1eae7c81e9
commit dfecca29da
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ the server-rendered app can be properly bootstrapped into a client app.`);
try {
const callbackResult = callback();
if (ɵisPromise(callbackResult)) {
asyncPromises.push(callbackResult);
// TODO: in TS3.7, callbackResult is void.
asyncPromises.push(callbackResult as any);
}
} catch (e) {