[REF] component: fix typescript error

This commit is contained in:
Géry Debongnie
2021-11-13 08:44:06 +01:00
committed by Aaron Bohy
parent 1700a6fba3
commit 9b8c582b32
+2 -2
View File
@@ -124,7 +124,7 @@ export class ComponentNode<T extends typeof Component = any> implements VNode<Co
try {
await Promise.all(this.willStart.map((f) => f.call(component)));
} catch (e) {
handleError(this, e);
handleError(this, e as Error);
return;
}
if (this.status === STATUS.NEW && this.fiber === fiber) {
@@ -158,7 +158,7 @@ export class ComponentNode<T extends typeof Component = any> implements VNode<Co
fiber.bdom = this.renderFn();
fiber.root.counter--;
} catch (e) {
handleError(this, e);
handleError(this, e as Error);
}
}