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
Type 'ForwardedRef<HTMLDivElement>' is not assignable to type 'Ref<"div"> | undefined'.
Type '(instance: HTMLDivElement | null) => void' is not assignable to type 'Ref<"div"> | undefined'.
Type '(instance: HTMLDivElement | null) => void' is not assignable to type '(instance: "div" | null) => void'.
Types of parameters 'instance' and 'instance' are incompatible.
Type '"div" | null' is not assignable to type 'HTMLDivElement | null'.
Type 'string' is not assignable to type 'HTMLDivElement'.ts(2322)
index.d.ts(134, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & Omit<HTMLAttributes<HTMLDivElement> & Partial<{}>, "className" | "ref"> & extraType & RefAttributes<...>'
Description
I have some code like that:
It has an type error on
ref
Did i missed some thing?
Reproduction
No response
System Informations
@master/style-element.react: "^1.1.4
typescript: 4.5.5
The text was updated successfully, but these errors were encountered: