mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-07 01:12:54 +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. |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| reach__router-tests.tsx | ||
| tsconfig.json | ||
| tslint.json | ||