Skip to content

Commit

Permalink
fix: cannot inherit types from cva props cast (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatanpham authored May 14, 2024
1 parent e36624c commit 514eab9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cold-colts-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mochi-ui/core": patch
---

Fix no inherit types from cva props cast
3 changes: 3 additions & 0 deletions config/tsconfig/overrides.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module 'class-variance-authority/dist/types' {
export type ClassProp = object
}
3 changes: 2 additions & 1 deletion config/tsconfig/react-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"target": "ES6",
"jsx": "react-jsx",
"noEmit": true
}
},
"include": ["./overrides.d.ts"]
}

0 comments on commit 514eab9

Please sign in to comment.