mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-31 10:44:33 +00:00
Link.props.ref is actually a React.Ref<HTMLAnchorElement>. Link is defined in terms of react's forwardRef() function, which returns a ForwardRefExoticComponent. @reach/router actually forwards an HTMLAnchorElement. Without this fix, Link is a component, and "ref" is assumed to be a React.Ref<Link>. But Link actually forwards "ref" to an <a> element it returns.