From fcec16ad5c09c5be7a894a98661ae5e48f389ade Mon Sep 17 00:00:00 2001 From: Emanuel Suriano Date: Mon, 21 Mar 2022 09:28:05 +0100 Subject: [PATCH] fix tsc --- gatsby-theme-mate/package.json | 2 +- gatsby-theme-mate/src/components/Header.tsx | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gatsby-theme-mate/package.json b/gatsby-theme-mate/package.json index a3cda04..d724086 100644 --- a/gatsby-theme-mate/package.json +++ b/gatsby-theme-mate/package.json @@ -54,6 +54,6 @@ "@types/react-headroom": "^2.2.2", "@types/react-helmet": "^6.1.2", "@types/rebass": "^4.0.9", - "typescript": "^4.3.5" + "typescript": "^4.6.2" } } diff --git a/gatsby-theme-mate/src/components/Header.tsx b/gatsby-theme-mate/src/components/Header.tsx index 352f2c1..4737013 100644 --- a/gatsby-theme-mate/src/components/Header.tsx +++ b/gatsby-theme-mate/src/components/Header.tsx @@ -31,7 +31,7 @@ const Header = () => { - {Object.keys(SECTION) + {(Object.keys(SECTION) as Array) .filter((id) => id !== 'home') .map((id) => ( diff --git a/yarn.lock b/yarn.lock index a6cb499..66628ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14314,10 +14314,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^4.3.5: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2.tgz#fe12d2727b708f4eef40f51598b3398baa9611d4" + integrity sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg== unbox-primitive@^1.0.1: version "1.0.1"