With the release of a change to the type of the innerRef property inside LinkProps,
the GatsbyLinkProps interface is wrong. That breaks any Gatsby build using Typescript due to incompatible types.
Context here:
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43367
innerRef?: React.RefCallback<HTMLAnchorElement>;
innerRef?: Function;
Ok, so likely fix here is to drop "our" innerRef and bump @types/reach__router?
Also how exactly does it break? I tried one of typescript starters and it didn't give me any problems (even when using innerRef)
This should be fixed in [email protected] / [email protected]
Most helpful comment
This should be fixed in
[email protected]/[email protected]