-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add named
clsx
export alias (#44)
* Provide named export for clsx * update readme * update types * update test file Co-authored-by: Luke Edwards <[email protected]>
- Loading branch information
Showing
4 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
export type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined; | ||
export type ClassDictionary = Record<string, any>; | ||
export type ClassArray = ClassValue[]; | ||
|
||
export interface ClassDictionary { | ||
[id: string]: any; | ||
} | ||
|
||
export interface ClassArray extends Array<ClassValue> { } | ||
|
||
declare const clsx: (...classes: ClassValue[]) => string; | ||
|
||
export declare function clsx(...inputs: ClassValue[]): string; | ||
export default clsx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters