Content pfp
Content
@
https://warpcast.com/~/channel/sys
0 reply
0 recast
0 reaction

Phil Cockfield pfp
Phil Cockfield
@pjc
2 replies
0 recast
5 reactions

Rafi pfp
Rafi
@rafi
@pjc you may look into Standard Schema that standardizes schema across libs https://standardschema.dev
1 reply
0 recast
1 reaction

Phil Cockfield pfp
Phil Cockfield
@pjc
Circling back here, wanted to let you know, I've landed on Valibot @rafi Rational: In general want to index more on basic level, elegant language constructs AND don't want to (unless utterly necessary) bring compilation tricks or other things that unnaturally "hack" the language itself (aka. your comment vis-a-vis "too much magic inside strings"). Leaning on approaches that vibe more naturally and natively within what the language (JS/TS) idiomatically affords feels more right. With the "Standard Schema" spec, which is what initially led me to investigate both Valibot and ArkType, downstream new tools and usage scenarios should be unlocked through the standard, not one entrapping "magic" library. The initial "tricks" I need to pull (runtime type validation, proper .d.ts files I can pass to Monaco, JSONSchema exports, also for code editor support) I've prototyped all out on Valibot, so I'm (more than) happy to lock-in on Validot for now anticipating "standards" to keep the door open for future fresh air.
1 reply
0 recast
1 reaction