From a44a4266d4733366c44d2f0208a0b1e7a75f232d Mon Sep 17 00:00:00 2001 From: GatsbyJS Bot Date: Tue, 11 May 2021 12:13:53 -0400 Subject: [PATCH] fix(gatsby): Fixes incorrect type (#31358) (#31365) (cherry picked from commit f6298068b3b4e0528c006bcc3d163a9873e76783) Co-authored-by: Lennart --- 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 6933039f2845e..75e854be22cec 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",