Skip to content

Commit

Permalink
fix: downgrade Typescript to 4.2.4
Browse files Browse the repository at this point in the history
zod is incompatible with Typescript 4.3.x due a change in 4.3 for evaluating deep complex types.

Since we do not use any 4.3 features (yet), lock typescript package to 4.2 until this is fixed

see microsoft/TypeScript#43249, colinhacks/zod#443, colinhacks/zod#473, microsoft/TypeScript#44299
  • Loading branch information
karrui committed Jun 7, 2021
1 parent c023f17 commit 7220df6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"source.fixAll.eslint": false
},
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
"ts-node": "^10.0.0",
"ts-node-dev": "^1.1.6",
"type-fest": "^1.2.0",
"typescript": "^4.3.2",
"typescript": "4.2.4",
"url-loader": "^1.1.2",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
Expand Down

0 comments on commit 7220df6

Please sign in to comment.