decs / typeschema

🛵 Universal adapter for TypeScript schema validation.
https://typeschema.com
MIT License
402 stars 13 forks source link

TypeSchema breaks with TypeScript 5.5.2 #61

Closed TheEdoRan closed 3 months ago

TheEdoRan commented 5 months ago

When using TypeScript 5.5.2, the imported Schema is typed any. Note that this is with @typeschema/main, @typeschema/zod and zod packages installed, using workspace TypeScript version in VS Code (the current default editor one is 5.4).

image

.vscode/settings.json (to use workspace TS Version):

{
  "typescript.tsdk": "node_modules/typescript/lib"
}

I'm using pnpm, but I've just tried with npm and got the same result.

Upvote & Fund

Fund with Polar

TheEdoRan commented 5 months ago

Could be related to:

TheEdoRan commented 5 months ago

Now that the ts-patch PR for TS 5.5.2 got merged, is it sufficient to rebuild and publish new TypeSchema packages to fix this issue? @decs