Re:ArkType: Ergonomic TS validator 100x faster than Zod
by andrewingram on Saturday April 12, 2025 @04:41PM
(#43667785)
We use it heavily for backend code, and it is a bit of a hot path for our use cases. However the biggest issue is how big the types are by default. I had a 500 line schema file that compiled into a 800,000 line .d.ts file — occupying a huge proportion of our overall typechecking time.
[ Parent
| on HN ]
Re:ArkType: Ergonomic TS validator 100x faster than Zod
by shortcord on Saturday April 12, 2025 @06:27PM
(#43668400)
That sounds absolutely absurd.
Are you using a lot of deeply nested objects + unions/intersections?
Re:ArkType: Ergonomic TS validator 100x faster than Zod
by andrewingram on Saturday April 12, 2025 @06:44PM
(#43668516)
A fair number of unions, yeah. Which also means some of the tricks for keeping the types small don’t work —- ie taking advantage of interface reuse.