Skip to content

Commit

Permalink
fix: Fix circular references in TypeScript definitions to fix editor …
Browse files Browse the repository at this point in the history
…performance issues. (#39)
  • Loading branch information
mskelton authored Apr 29, 2023
1 parent b20e0ee commit f766680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export declare const cnBase: <T extends CnOptions>(...classes: T) => CnReturn;
export declare const cn: <T extends CnOptions>(...classes: T) => (config?: TWMConfig) => CnReturn;

// compare if the value is true or array of values
export type isTrueOrArray<T> = T extends true | (infer U)[] ? true : false;
export type isTrueOrArray<T> = T extends true | unknown[] ? true : false;

export type isStringArray<T> = T extends Array<string> ? true : false;

Expand Down Expand Up @@ -192,7 +192,7 @@ export type TV = {
C extends TVConfig<V, EV> = undefined,
B extends ClassValue = undefined,
S extends TVSlots = undefined,
E extends ReturnType<TV> = undefined,
E extends TVReturnType = undefined,
EV extends TVVariants = E["variants"] extends TVVariants ? E["variants"] : undefined,
ES extends TVSlots = E["slots"] extends TVSlots ? E["slots"] : undefined,
>(
Expand Down

0 comments on commit f766680

Please # to comment.