Closed sitch closed 1 year ago
Currently, these won't type properly if you wanted the equivalent of href="#some-id"
href="#some-id"
const id = "some-id"
<Link href={`${id}`} />
or
<Link href={{ hash: id }} />
Should just need to union a hash only type:
type Hash = { hash: string } export interface LinkProps ... { // Union `Hash` here href: Route | StaticRoute | Query | Hash ... }
@sitch Thanks for reporting this.
:zap: fast! Thanks
Currently, these won't type properly if you wanted the equivalent of
href="#some-id"
or
Should just need to union a hash only type: