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

Support Node native TypeScript (--experimental-strip-types and --experimental-transform-types) #1244

Closed
ismailkarsli opened this issue Aug 27, 2024 · 5 comments

Comments

@ismailkarsli
Copy link

ismailkarsli commented Aug 27, 2024

Feature Request

I want to use these new flags to get rid of configs, nodemon, ts-node etc. but can't because typia. I really like typia and don't want to lose it. Is there any plans for Node native TS?

Cheers.

@ryoppippi
Copy link
Contributor

because typia using tsc to extract type information, you need to run scripts by running tsc + typia

@ismailkarsli
Copy link
Author

ismailkarsli commented Sep 2, 2024

because typia using tsc to extract type information, you need to run scripts by running tsc + typia

So we need tsc no matter what. I guess I should wait generation to suffixed files feature, at least.

Or generate mode with proper caching. Thanks for the info.

@ismailkarsli
Copy link
Author

ismailkarsli commented Sep 11, 2024

@ryoppippi I just checked unplugin-typia and saw it can work with Bun. It looks like it injects with a preload script and it reminded me how ts-node can run with Node —require parameter: https://www.npmjs.com/package/ts-node#node-flags-and-other-tools

I’m wondering, can unplugin-typia work same way and use —loader, —require or —import flag to extract types in Node?

cc @samchon

@ryoppippi
Copy link
Contributor

@ismailkarsli unplugin-typia uses tsc inside

@ismailkarsli
Copy link
Author

ismailkarsli commented Sep 12, 2024

@ryoppippi Since ts-node can transform TS files to JS files with node -r ts-node/register, I thought that typia can extract TS types with tsc and then let other compilers do their jobs.

I don’t know how tsc, typia or unplugin-typia works so please excuse me if I asked meaningless questions.

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

No branches or pull requests

2 participants