@arktypeioi
iAccount based inUnited States
About this account
- Account based in
- United States
- Connected via
- United States Android App
Account-level information from X, not a live location or the device used for a specific post.
TypeScript's 1:1 validator, optimized from editor to runtime ⛵ ⭐https://nitter.cf/t.co/xbZ88YqNcO 👋https://nitter.cf/t.co/ve4WN4MhQK
Joined September 2022
- Tweets1.3K
- Following3
- Followers5.9K
- Likes2.3K
📢ArkType 2.2 is here.
This is a big one, and it's long overdue.
Validated functions, type-safe regex, bidirectional JSON Schema, and universal schema interop.
Here's what's new 🧵
Much more:
- select + configure — query types by node kind, configure specific references
- Improved type.declare — morph-aware declarations, optionality via property values
- type.or, type.and, type.merge, type.pipe — n-ary standalone operators
- "|>" string-embeddable pipe syntax
- type.valueOf for TS enums
- string.hex + string.regex keywords
- Serializable ArkErrors (flatByPath, flatProblemsByPath, toJSON)
- exactOptionalPropertyTypes config
- ES2020 + Hermes compatibility
- In-docs playground
Full announcement: arktype.io/docs/blog/2.2
I couldn't be more hyped to see what you do with it.
⚡ arktype.io/docs/intro/setup
⭐ github.com/arktypeio/arktype
👋 arktype.io/discord
If you want to support this work: github.com/sponsors/arktypei…
Standard Schema validators can now be embedded directly in ArkType definitions.
Zod, Valibot, or anything else that implements the spec.
@ark/json-schema — Bidirectional JSON Schema
Parse JSON Schema into ArkType Types, and convert Types to JSON Schema. Huge thanks to @TizzySaurus for building this one.
toJsonSchema() now supports configurable fallbacks, draft-07/2020-12 targets, and cyclic types. 11 granular fallback codes for handling incompatibilities your way.
all you need to "learn" ArkType syntax:
1️⃣ start with a typescript keyword
2️⃣ .autocomplete to discover constraints
3️⃣ compose if needed with &, |, etc.
📚 docs: arktype.io
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype
🛝 playground: arktype.io/playground
📚 match docs: arktype.io/docs/match
👋 discord: arktype.io/discord
⭐ github: github.com/arktypeio/arktype
ArkType retweeted
🎉Announcing Standard JSON Schema🎉
The next spec in the Standard Schema family is here to bring library-agnostic JSON Schema to TS.
Let's make sure everyone sees it🔁
ArkType retweeted
Introducing ✨ Standard JSON Schema ✨
It's a sister spec to Standard Schema that provides a common interface for any entity that can be converted to JSON Schema
BETRAYAL
sounds fake but I'm starting a company with my nemesis Colin P. Zod
and our first hire is @AndaristRake
and our first product is now in beta