[REF] component: fix typescript error

This commit is contained in:
Géry Debongnie
2021-11-13 08:44:06 +01:00
committed by Samuel Degueldre
parent 04334e23d7
commit 06ea6d2490
+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);
}
}