From 14b96052edc1e653a71e78e9262962f8aef5eb9a Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Fri, 3 Apr 2020 04:34:17 +0200 Subject: [PATCH] fix(gatsby-link): drop custom innerRef typing and reuse one from @reach/router (#22770) --- packages/gatsby-link/index.d.ts | 1 - packages/gatsby-link/package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/gatsby-link/index.d.ts b/packages/gatsby-link/index.d.ts index 795ffa1361ab3..6792bdf51d765 100644 --- a/packages/gatsby-link/index.d.ts +++ b/packages/gatsby-link/index.d.ts @@ -6,7 +6,6 @@ export interface GatsbyLinkProps extends LinkProps { activeClassName?: string /** Inline styles for when this Link is active */ activeStyle?: object - innerRef?: Function onClick?: (event: React.MouseEvent) => void /** Class the link as highlighted if there is a partial match via a the `to` being prefixed to the current url */ partiallyActive?: boolean diff --git a/packages/gatsby-link/package.json b/packages/gatsby-link/package.json index 49a337820aa79..54ca8a38305ad 100644 --- a/packages/gatsby-link/package.json +++ b/packages/gatsby-link/package.json @@ -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": { diff --git a/yarn.lock b/yarn.lock index 0ca5a9733f882..15423b1e043c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" "*"