Skip to content

Commit

Permalink
Chore: Add TypeScript definitions (#5)
Browse files Browse the repository at this point in the history
* feat: added a typescript defs file

* chore: also export the types

* fix: addl exports

* chore: rename types file
  • Loading branch information
maraisr authored and lukeed committed Jan 11, 2019
1 parent 6c6d871 commit 08d028f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions clsx.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean;

export interface ClassDictionary {
[id: string]: any;
}

export interface ClassArray extends Array<ClassValue> { }

declare const clsx: (...classes: ClassValue[]) => string;

export default clsx;

0 comments on commit 08d028f

Please sign in to comment.