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
TS2322: Type '(instance: ReactInstance) => void' is not assignable to type 'string | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined'. Type '(instance: ReactInstance) => void' is not assignable to type '(instance: HTMLDivElement | null) => void'. Types of parameters 'instance' and 'instance' are incompatible. Type 'HTMLDivElement | null' is not assignable to type 'ReactInstance'. Type 'null' is not assignable to type 'ReactInstance'. index.d.ts(143, 9): The expected type comes from property 'ref' which is declared here on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'
Expected behavior
Typescript will compile without errors.
Current behavior
Ref types mismatch.
Steps to reproduce
Context (environment)
The text was updated successfully, but these errors were encountered: