Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: ArkType 3.0 – Set-theoretic precompiled TS validator (opens external site)

49 points by ssalbdivad 1 day ago arktype.io 13 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (2)

  1. I tried ArkType a couple of years ago and really like the idea but ran into limitations pretty fast compared to the TypeScript compiler. Specifically, I make extensive use of mapped types to enforce through-out the codebase that introducing something new into the codebase immediately raises errors everywhere that new thing needs to be plugged in. Was already powerful for humans, but is even more so with LLMs. Has there been any movement on mapped types?
    Replies (1)
    1. you should check out the new .map() API:

      https://arktype.io/docs/type-api#map

      it's a really powerful API (could use some additional docs) both in terms of runtime and inference, curious to hear if it solves some of what you were looking for.