Skip to content

Commit

Permalink
fix: ClassProp ambiguous union
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Jan 17, 2024
1 parent ed21cdd commit f362a0a
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 f362a0a

Please sign in to comment.