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

Typescript <5 support? #1386

Open
nikita-fuchs opened this issue Nov 26, 2024 · 5 comments
Open

Typescript <5 support? #1386

nikita-fuchs opened this issue Nov 26, 2024 · 5 comments
Labels
question Further information is requested

Comments

@nikita-fuchs
Copy link

Hello, is there a Typia version that has the essential features working (type checks in runtime) but relying on a TS version < 5? I have an angular project that has this dependency. Couldn't find anything myself unfortunately.

@samchon
Copy link
Owner

samchon commented Nov 26, 2024

Possible in NodeJS with latest version or typia with at TS 4.8 over version. It needs older version of ts-patch or ttypescript.

However, I do not know how it works on the Angular.

If not possible, consider generation mode.

@samchon samchon added the question Further information is requested label Nov 26, 2024
@nikita-fuchs
Copy link
Author

nikita-fuchs commented Nov 26, 2024

Hey, thank you for the fast response ! I would really like to use and support this package !
I use "typescript": "4.8.4", with my Angular project. But after running npx typia setup I have "typescript": "5.6.3". The console output says

> ts-patch install && typia patch

[+] ts-patch installed!
----------------------------------------
 Typia Setup Wizard
----------------------------------------
Since TypeScript v5.3 update, "tsc" no more parses JSDoc comments.

Therefore, "typia" revives the JSDoc parsing feature by patching "tsc".
This is a temporary feature of "typia", and it would be removed when "ts-patch" being updated.

So it looks like Typia is installing TS 5?
How can I keep it at Typescript 4.8 ?

@samchon
Copy link
Owner

samchon commented Nov 26, 2024

Install manually please

@nikita-fuchs
Copy link
Author

How would I install manually?

When I run `npx typia setup" it automatically installs and patches typescript version 5. How can I keep my typescript and make the setup patch my version 4.8.4 ?

@samchon
Copy link
Owner

samchon commented Nov 28, 2024

Here it is.

https://typia.io/docs/setup/#manual-setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants