You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2345: Argument of type 'VariantsOf<Props, $Hooks1<OmitType<Required<Props>, Function>>>' is not assignable to parameter of type 'RootVariations'. Type 'VariantsOf<Props, $Hooks1<OmitType<Required<Props>, Function>>>' is not assignable to type '{ $forward?: MaybeString; }'. Types of property '$forward' are incompatible. Type 'string | { [x: string]: string | VariantsOf<$Hooks1<Omit<$Hooks1<OmitType<Required<Props>, Function>>, "$forward">>, $Hooks1<...>> | undefined; } | undefined' is not assignable to type 'MaybeString'. Type '{ [x: string]: string | VariantsOf<$Hooks1<Omit<$Hooks1<OmitType<Required<Props>, Function>>, "$forward">>, $Hooks1<OmitType<Required<$Hooks1<Omit<$Hooks1<...>, "$forward">>>, Function>>> | undefined; }' is not assignable to type 'MaybeString'.
Library versions:
variant-classnames: ^1.2.0
react: 18.2.0
typescript: 4.8.2
Can you help me with this issue?
Thank you.
The text was updated successfully, but these errors were encountered:
Hi everyone,
I'm just trying this library and I'm looking at the TypeScript support.
When I try the example here https://github.com/mattvalleycodes/variant-classnames#nested-properties-auto-complete,
TypeScript gives me an error:
TS2345: Argument of type 'VariantsOf<Props, $Hooks1<OmitType<Required<Props>, Function>>>' is not assignable to parameter of type 'RootVariations'. Type 'VariantsOf<Props, $Hooks1<OmitType<Required<Props>, Function>>>' is not assignable to type '{ $forward?: MaybeString; }'. Types of property '$forward' are incompatible. Type 'string | { [x: string]: string | VariantsOf<$Hooks1<Omit<$Hooks1<OmitType<Required<Props>, Function>>, "$forward">>, $Hooks1<...>> | undefined; } | undefined' is not assignable to type 'MaybeString'. Type '{ [x: string]: string | VariantsOf<$Hooks1<Omit<$Hooks1<OmitType<Required<Props>, Function>>, "$forward">>, $Hooks1<OmitType<Required<$Hooks1<Omit<$Hooks1<...>, "$forward">>>, Function>>> | undefined; }' is not assignable to type 'MaybeString'.
Library versions:
Can you help me with this issue?
Thank you.
The text was updated successfully, but these errors were encountered: