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",