Skip to content

Commit

Permalink
fix: remaining todo
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Jun 4, 2024
1 parent 4b674a0 commit 33914cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/lib/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
declare type genericObject = { [_: string]: any}

export const classNames = (...args: Array<any>): string => {
const classes: Array<number | string> = []; //TODO verify this
const classes: string[] = [];

args.map((arg: string) => {
if (!arg) {
return false;
}

if (typeof arg === 'string' || typeof arg === 'number') {
classes.push(arg);
classes.push('' + (arg || ''));
} else if (Array.isArray(arg) && (arg as Array<any>).length) {
const inner = classNames(...arg as Array<string>);

Expand Down

0 comments on commit 33914cd

Please sign in to comment.