Skip to content

Commit

Permalink
fix(gatsby-link): drop custom innerRef typing and reuse one from @rea…
Browse files Browse the repository at this point in the history
…ch/router (#22770)
  • Loading branch information
pieh authored Apr 3, 2020
1 parent 480a928 commit 14b9605
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/gatsby-link/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface GatsbyLinkProps<TState> extends LinkProps<TState> {
activeClassName?: string
/** Inline styles for when this Link is active */
activeStyle?: object
innerRef?: Function
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void
/** Class the link as highlighted if there is a partial match via a the `to` being prefixed to the current url */
partiallyActive?: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@babel/runtime": "^7.8.7",
"@types/reach__router": "^1.3.0",
"@types/reach__router": "^1.3.3",
"prop-types": "^15.7.2"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4061,10 +4061,10 @@
resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c"
integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==

"@types/reach__router@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@types/reach__router/-/reach__router-1.3.0.tgz#4c05a947ccecca05c72bb335a0f7bb43fec12446"
integrity sha512-0aL79bFPJzJOJOOMZm2301ErQVaveBdpW88uuavXymUlcYIAOCmI1ujJ2XLH6Mzn76O94eQCHIl1FDzNNKJCYA==
"@types/reach__router@^1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@types/reach__router/-/reach__router-1.3.3.tgz#cec4095219dce6eca2daf22399bb3b6bc28c1baf"
integrity sha512-HTHMGJLdH3czgPP1nHF82y+TYLV1KSh1qYeezqHNDNuESBy55ij1LCn8jDYFeKCuAxm0gd9J25zyYy7mhOcgOw==
dependencies:
"@types/history" "*"
"@types/react" "*"
Expand Down

0 comments on commit 14b9605

Please sign in to comment.