DEV Community

Discussion on: [Typia] 15,000x faster TypeScript Validator and its histories

Collapse
 
krumpet profile image
Ran Lottem

This looks great!

Does the is method support TS interfaces or just classes that exist during runtime? I ask because I played around with type guards for interfaces using code generation to create runtime representations of interfaces, and I wonder if that's something typia does.

I worked with TS in the past and now I work with Java and protocol buffers, where I also did code generation based on generated Message Java subclasses. Interesting to see what protobuf looks like in TS.

Collapse
 
samchon profile image
Jeongho Nam

Yes, this is a transformer library generating validation script by analyzing TypeScript type. If you're wondering how typia generates protobuf message, reference test automation code.

I know automatically generated message by current typia is so ugly yet, but it would be reasonable. Also, as you are interested in protobuf, you may understand how typia implemented non-protobuf supported type through detour expression.

github.com/samchon/typia/tree/feat...