Skip to content

Commit

Permalink
feat: Export the ClassName type for external usage (#60)
Browse files Browse the repository at this point in the history
* Export the Argument type for external usage

* Update Argument to ClassName according to feedback from maintainer

---------

Co-authored-by: Alex Nault <[email protected]>
  • Loading branch information
hckhanh and alexnault authored Sep 28, 2024
1 parent 5ae14c3 commit 0f252c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
type Argument = string | boolean | null | undefined;
export type ClassName = string | boolean | null | undefined;

/**
* Conditionally join classNames into a single string
* @param {...String} args The expressions to evaluate
* @returns {String} The joined classNames
*/
function cx(...args: Argument[]): string;
function cx(...args: ClassName[]): string;
function cx(): string {
let str = "",
i = 0,
Expand Down

0 comments on commit 0f252c0

Please sign in to comment.