Skip to content

Commit

Permalink
fix: ClassProp ambiguous union (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton authored Feb 9, 2024
1 parent ddc1554 commit 6ece7dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ import {TVGeneratedScreens} from "./generated";
export type {ClassValue};

export type ClassProp<V extends unknown = ClassValue> =
| {
class: V;
className?: never;
}
| {class?: never; className: V}
| {class?: never; className?: never};
| {class?: V; className?: never}
| {class?: never; className?: V};

type TVBaseName = "base";

Expand Down

0 comments on commit 6ece7dd

Please sign in to comment.