Skip to content

Commit

Permalink
fix(gatsby): Fixes incorrect type (#31358)
Browse files Browse the repository at this point in the history
  • Loading branch information
LekoArts committed May 11, 2021
1 parent dfaea09 commit f629806
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export interface CreateDevServerArgs extends ParentSpanPluginArgs {
export interface CreateNodeArgs<
TNode extends Record<string, unknown> = Record<string, unknown>
> extends ParentSpanPluginArgs {
node: Node<TNode>
node: Node & TNode
traceId: string
traceTags: {
nodeId: string
Expand Down
3 changes: 2 additions & 1 deletion packages/gatsby/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"jsx": "preserve",
Expand Down

0 comments on commit f629806

Please sign in to comment.