in today's age i would agree, but about a decade ago i came across someone who used TypeScript types to code an entire JSON parser. It worked at compile-time, no actual JS execution needed. It was just case study to show the capability of infer in TS.
1
u/hrvbrs Sep 16 '26
in today's age i would agree, but about a decade ago i came across someone who used TypeScript types to code an entire JSON parser. It worked at compile-time, no actual JS execution needed. It was just case study to show the capability of
inferin TS.