typia icon indicating copy to clipboard operation
typia copied to clipboard

can i use unplugin-typia?

Open SonderRill opened this issue 5 months ago • 5 comments

Question

The documentation calls for using unplugin-typia. But in npm it is marked as deprecated https://www.npmjs.com/package/@ryoppippi/unplugin-typia

SonderRill avatar Sep 10 '25 00:09 SonderRill

Hi, Samchon isn't owner of that package, so we can't answer it... if it's deprecated, there may be good reason for it.

Also setup for Typia isn't hard at all. From my experience, I even use Typia in plain JavaScript without issues and was able to setup it without any issues. All you need to do is really just add 3 LOCs to tsconfig.json (or jsconfig.json in case of JavaScript codebase), and that's it. Even with Vite (or in Svelte, VueJS, or Effects) it was effortless.

Typia itself already includes setup CLI tool too.

Mlocik97 avatar Sep 18 '25 19:09 Mlocik97

Hi, Samchon isn't owner of that package, so we can't answer it... if it's deprecated, there may be good reason for it.

I think the owner of that package just decided to be done with it. It was really abrupt.

All you need to do is really just add 3 LOCs to tsconfig.json (or jsconfig.json in case of JavaScript codebase), and that's it. Even with Vite (or in Svelte, VueJS, or Effects) it was effortless.

How exactly does one set this up in Vite effortlessly without using unplugin-typia? If it is simple, could you perhaps share the instructions so the official documents for typia can be updated to not reference unplugin-typia?

Thanks!

khera avatar Sep 19 '25 14:09 khera

The documentation calls for using unplugin-typia. But in npm it is marked as deprecated https://www.npmjs.com/package/@ryoppippi/unplugin-typia

See also #1604 for a brief discussion from a while back.

khera avatar Sep 19 '25 14:09 khera

Hi, Samchon isn't owner of that package, so we can't answer it... if it's deprecated, there may be good reason for it.

Also setup for Typia isn't hard at all. From my experience, I even use Typia in plain JavaScript without issues and was able to setup it without any issues. All you need to do is really just add 3 LOCs to tsconfig.json (or jsconfig.json in case of JavaScript codebase), and that's it. Even with Vite (or in Svelte, VueJS, or Effects) it was effortless.

Typia itself already includes setup CLI tool too.

I also don't really understand how to support Typia in Next without unplugin-typia. Could you show an example? That would be very helpful.

SonderRill avatar Sep 22 '25 01:09 SonderRill

Will re-start unplugin-typia with different package name on this weekend.

samchon avatar Nov 07 '25 13:11 samchon