From 374950d8ab06716b064c69179d3557205a561ebc Mon Sep 17 00:00:00 2001 From: LekoArts Date: Tue, 11 May 2021 10:37:28 +0200 Subject: [PATCH] fix incorrect type --- packages/gatsby/index.d.ts | 2 +- packages/gatsby/package.json | 3 ++- tsconfig.json | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts index 23531e72f0ee2..1ba9dc2a0dcb3 100644 --- a/packages/gatsby/index.d.ts +++ b/packages/gatsby/index.d.ts @@ -743,7 +743,7 @@ export interface CreateDevServerArgs extends ParentSpanPluginArgs { export interface CreateNodeArgs< TNode extends Record = Record > extends ParentSpanPluginArgs { - node: Node + node: Node & TNode traceId: string traceTags: { nodeId: string diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 36226fb1b49a7..b790a8483dab2 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -251,7 +251,8 @@ "prebuild": "rimraf dist && rimraf cache-dir/commonjs", "postinstall": "node scripts/postinstall.js", "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "rimraf dist && mkdir dist && npm run build:internal-plugins && npm run build:rawfiles && npm run build:src -- --watch" + "watch": "rimraf dist && mkdir dist && npm run build:internal-plugins && npm run build:rawfiles && npm run build:src -- --watch", + "typecheck": "tsc --noEmit" }, "types": "index.d.ts", "yargs": { diff --git a/tsconfig.json b/tsconfig.json index f145f30aadbb2..a50fc9faa154c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,6 @@ "strictFunctionTypes": true, "strictPropertyInitialization": true, "noFallthroughCasesInSwitch": true, - "skipLibCheck": true, "resolveJsonModule": true, "esModuleInterop": true, "jsx": "preserve",