diff --git a/js/src/common/Component.ts b/js/src/common/Component.ts index 5f244d871..8bb7746dd 100644 --- a/js/src/common/Component.ts +++ b/js/src/common/Component.ts @@ -108,7 +108,7 @@ export default abstract class Component implemen * and checking for common issues. */ private setAttrs(attrs: T = {} as T): void { - (this.constructor as any).initAttrs(attrs); + (this.constructor as typeof Component).initAttrs(attrs); if (attrs) { if ('children' in attrs) {