From c7b6069827f247bcda25607e19e8c76b813b67ea Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 27 Feb 2023 11:08:41 +0400 Subject: [PATCH] Up jsdoc --- src/dom_components/model/Component.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/dom_components/model/Component.ts b/src/dom_components/model/Component.ts index c4964fa19..faf599991 100644 --- a/src/dom_components/model/Component.ts +++ b/src/dom_components/model/Component.ts @@ -1440,17 +1440,12 @@ export default class Component extends StyleableModel { } /** - * Get the name of the component - * @return {String} + * Get the name of the component. + * @param {Object} [opts={}] Options + * @param {Boolean} [opts.noCustom] Avoid custom name assigned to the component. + * @returns {String} * */ - getName( - opts: { - /** - * Avoid custom name assigned to the component. - */ - noCustom?: boolean; - } = {} - ) { + getName(opts: { noCustom?: boolean } = {}) { const { em } = this; const { type, tagName, name } = this.attributes; const defName = type || tagName;