Skip to content

Commit 4ce30ea

Browse files
VamsiPunnaReddytimphandev
authored andcommitted
fix: ClassDictionary type not working when using with base-ui
1 parent bcf998b commit 4ce30ea

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/css-variants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "css-variants",
3-
"version": "2.3.4",
3+
"version": "2.3.5",
44
"description": "Lightweight helpers to compose class names and inline styles using variants. Zero runtime deps, small bundle, and first-class TypeScript support.",
55
"homepage": "https://css-variants.vercel.app",
66
"type": "module",

packages/css-variants/src/cx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// credit: https://github.com/lukeed/clsx
22

3-
export type ClassDictionary = Record<string, unknown>
3+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4+
export type ClassDictionary = Record<string, any>
45
export type ClassValue = ClassValue[] | string | number | bigint | ClassDictionary | null | boolean | undefined
56
export type ClassArray = ClassValue[]
67

0 commit comments

Comments
 (0)