Skip to content

Commit

Permalink
Fix(Class Variant): This function is called without any overload, fix…
Browse files Browse the repository at this point in the history
…ed #247
  • Loading branch information
BenSeage committed Jan 16, 2024
1 parent 09047a7 commit f0e9343
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/class-variant/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ type Param<T> = string
| string[]
| Record<string, boolean>
| [string, { [key in keyof T]?: T[key] }]
| { [key in keyof T]?: T[key] extends boolean | undefined ? string : Record<string, string> }
| {
[key in keyof T]?: T[key] extends string | undefined
? Record<string, string>
: T[key] extends boolean | undefined
? string
: (Record<string, string> | string)
}
| ((valueByProp: T) => any)
type ReturnType<T> = { default?: Partial<T> } & ((valueByProp?: T) => string)

Expand Down

0 comments on commit f0e9343

Please sign in to comment.