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

How to use older Typia with older versions of TypeScript? #910

Open
secobarbital opened this issue Dec 18, 2023 · 3 comments
Open

How to use older Typia with older versions of TypeScript? #910

secobarbital opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@secobarbital
Copy link

Question

I would like to use Typia in a project that is stuck at TypeScript 4.7.4 due to other dependencies. I found the compatible versions of ts-patch (2.1.0) and typia (5.0.2) but the setup script installs the latest TS and ts-patch and doesn't allow me to run the patch step on its own.

I expect there are many projects with production constraints keeping them at older versions of TypeScript, it would be nice to be able to use Typia in these projects. Of course it is fine for the latest version of a library to target the latest version of the compiler, but projects that are willing to live with an older version of Typia should be able to use it with the version of TypeScript from back then.

@samchon
Copy link
Owner

samchon commented Dec 19, 2023

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

Here's the manual setup document.

@samchon samchon self-assigned this Dec 19, 2023
@samchon samchon added the question Further information is requested label Dec 19, 2023
@secobarbital
Copy link
Author

Thank you for the response (and for the library)! The manual setup doesn't work either because typia patch says it is called with the wrong command. I ended up having to use generation mode instead.

What would help is to for the documentation to be clear that transform mode is really for TS5 and generation mode is for TS<5 and other compilers.

@samchon
Copy link
Owner

samchon commented Dec 22, 2023

Do not call the typia patch command in the older TS version.

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