Skip to content

Commit

Permalink
fix: issue with vue output
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Nov 13, 2024
1 parent a5c1618 commit 2f4f7dc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/components/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,17 @@ 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);
}

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;
}
Expand Down

0 comments on commit 2f4f7dc

Please sign in to comment.