From 2f4f7dcd8de15791990543eae8b80276f6dce332 Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Wed, 13 Nov 2024 13:39:48 +0100 Subject: [PATCH] fix: issue with vue output --- packages/components/src/utils/index.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/components/src/utils/index.ts b/packages/components/src/utils/index.ts index 8882edb982b..5fcbd9fed7d 100644 --- a/packages/components/src/utils/index.ts +++ b/packages/components/src/utils/index.ts @@ -233,9 +233,8 @@ export const enableCustomElementAttributePassing = ( * if it is used in a framework like angular e.g.: [disabled]="myDisabledProp" * @param originBool Some boolean to convert to string */ -export const getBooleanAsString = ( - originBool?: boolean -): string | boolean | undefined => { +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export const getBooleanAsString = (originBool?: boolean): any => { if (originBool) { return String(originBool); } @@ -243,9 +242,8 @@ export const getBooleanAsString = ( return originBool; }; -export const getHideIcon = ( - showIcon?: boolean -): string | boolean | undefined => { +// eslint-disable-next-line @typescript-eslint/no-explicit-any +export const getHideIcon = (showIcon?: boolean): any => { if (showIcon === undefined) { return undefined; }