Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeSchema breaks with TypeScript 5.5.2 #61

Closed
TheEdoRan opened this issue Jun 24, 2024 · 2 comments · Fixed by #62
Closed

TypeSchema breaks with TypeScript 5.5.2 #61

TheEdoRan opened this issue Jun 24, 2024 · 2 comments · Fixed by #62

Comments

@TheEdoRan
Copy link

TheEdoRan commented Jun 24, 2024

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

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@TheEdoRan
Copy link
Author

Could be related to:

@TheEdoRan TheEdoRan changed the title TypeSchema breaks with TypeScript 5.5 TypeSchema breaks with TypeScript 5.5.2 Jun 24, 2024
@TheEdoRan
Copy link
Author

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant