Skip to content

Commit 7220df6

Browse files
committed
fix: downgrade Typescript to 4.2.4
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
1 parent c023f17 commit 7220df6

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@
1616
"source.fixAll.eslint": false
1717
},
1818
"editor.defaultFormatter": "esbenp.prettier-vscode"
19-
}
19+
},
20+
"typescript.tsdk": "node_modules/typescript/lib"
2021
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"ts-node": "^10.0.0",
249249
"ts-node-dev": "^1.1.6",
250250
"type-fest": "^1.2.0",
251-
"typescript": "^4.3.2",
251+
"typescript": "4.2.4",
252252
"url-loader": "^1.1.2",
253253
"webpack": "^4.46.0",
254254
"webpack-cli": "^3.3.12",

0 commit comments

Comments
 (0)