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 {
|
||||
const callbackResult = callback();
|
||||
if (ɵisPromise(callbackResult)) {
|
||||
asyncPromises.push(callbackResult);
|
||||
// TODO: in TS3.7, callbackResult is void.
|
||||
asyncPromises.push(callbackResult as any);
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue