From 9331a70f073fcfd21f136d03d1c503ae3e6598d8 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 23 Jul 2026 10:42:27 +0400 Subject: [PATCH] Fix Component TS --- packages/core/src/dom_components/model/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/dom_components/model/Component.ts b/packages/core/src/dom_components/model/Component.ts index 8f4948066..82517d478 100644 --- a/packages/core/src/dom_components/model/Component.ts +++ b/packages/core/src/dom_components/model/Component.ts @@ -1025,7 +1025,7 @@ export default class Component extends StyleableModel { * Returns component's classes as an array of strings * @return {Array} */ - getClasses() { + getClasses(): string[] { const attr = this.getAttributes(); const classStr = attr.class; return classStr ? classStr.split(' ') : []; @@ -1520,7 +1520,7 @@ export default class Component extends StyleableModel { * @param {Boolean} [opts.noCustom] Avoid custom name assigned to the component. * @returns {String} * */ - getName(opts: { noCustom?: boolean } = {}) { + getName(opts: { noCustom?: boolean } = {}): string { const { em } = this; const { type, tagName, name } = this.attributes; const defName = type || tagName;