tailwind-variants 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ export declare const cnBase: <T extends CnOptions>(...classes: T) => CnReturn;
42
42
  export declare const cn: <T extends CnOptions>(...classes: T) => (config?: TWMConfig) => CnReturn;
43
43
 
44
44
  // compare if the value is true or array of values
45
- export type isTrueOrArray<T> = T extends true | (infer U)[] ? true : false;
45
+ export type isTrueOrArray<T> = T extends true | unknown[] ? true : false;
46
46
 
47
47
  export type isStringArray<T> = T extends Array<string> ? true : false;
48
48
 
@@ -192,7 +192,7 @@ export type TV = {
192
192
  C extends TVConfig<V, EV> = undefined,
193
193
  B extends ClassValue = undefined,
194
194
  S extends TVSlots = undefined,
195
- E extends ReturnType<TV> = undefined,
195
+ E extends TVReturnType = undefined,
196
196
  EV extends TVVariants = E["variants"] extends TVVariants ? E["variants"] : undefined,
197
197
  ES extends TVSlots = E["slots"] extends TVSlots ? E["slots"] : undefined,
198
198
  >(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-variants",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "🦄 Tailwindcss first-class variant API",
5
5
  "author": "Junior Garcia <jrgarciadev@gmail.com>",
6
6
  "license": "MIT",