So what's the point of all this?
✅every type is automatically optimized
✅unsatisfiable types fail when initialized
✅allows rich runtime introspection
There are lots of great schema libraries, but none of them can do these things the way ArkType can.
✅every type is automatically optimized
✅unsatisfiable types fail when initialized
✅allows rich runtime introspection
There are lots of great schema libraries, but none of them can do these things the way ArkType can.
Comments
Also, if you're anything like us, it's a ton of fun to mess around with🛝
https://arktype.io/playground?code=import%2520%257B%2520type%2520%257D%2520from%2520%2522arktype%2522%250A%250Aconst%2520Even%2520%253D%2520type.number.divisibleBy%282%29%250Aconst%2520By3%2520%253D%2520type.number.divisibleBy%283%29%250Aconst%2520Thing%2520%253D%2520Even.and%28By3%29%250A%250Aconsole.log%28Thing.description%29%250Aconsole.log%28Thing.extends%28By3%29%29%250Aconsole.log%28By3.extends%28Thing%29%29%250A%250Aconst%2520out%2520%253D%2520Thing%285%29%250A
Docs: https://arktype.io
GitHub: https://github.com/arktypeio/arktype
Discord: https://arktype.io/discord