Closed LBF38 closed 1 year ago
Well, the error message is Error on typia.validatParse(): non-specified generic argument.
.
As you can see from the message, typia
does not support universal generic function.
Thank you for the answer. So, we should directly use the validateParse<T>()
function in our code.
Moreover, if I want to use it with esbuild or other compilers (as said in the doc), I will need to generate code before building the whole project ? I haven't correctly understood this part. For example, with this code snippet, I would have to write my code, types, etc... Then, I would do the Typia generation code step, and finally, I would make the project build using esbuild config. Is this correct ?
Yes, correct. In my case, I build typed related features as SDK, and import it through npm private module of Github. Especially like below case. I know it is inconvenient in frontend project unless using ts-loader, but no way until stc being released.
I understand it better. Thank you for your help. I close the issue then.
Question on setup
Hi, I just found about typia and I'm trying to make it work inside my project.
However, I always have the following error when setting up and trying to use it. Am I missing something ?
Here is the code I'm using from typia :
Therefore, am I doing something wrong or missing something ? Btw, I have followed the instructions on https://typia.io/docs/setup. But I didn't understand the part on transform.
Thanks for your help !