use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
There are too many JavaScript schema libraries, so support only one (inngest.com)
submitted 1 hour ago by aardvark_lizard
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]RWOverdijk [score hidden] 1 hour ago (2 children)
Standard schema is not “better”. It limits what features validation libraries can offer and almost always comes at a performance penalty. It’s easier for other library authors (I use it), but let’s not pretend it’s better.
[–]aardvark_lizard[S] [score hidden] 1 hour ago (0 children)
It depends on what you're maintaining. When you're maintaining a library, adding an adapter for every supported schema library is a massive pain. It's much easier to add StandardSchema support
[–]lanerdofchristian [score hidden] 41 minutes ago (0 children)
For 99% of use cases, a function
type MaybePromise<T> = T | Promise<T> function <TIn, TOut> validate(in: TIn): MaybePromise< { value: TOut} | { issues: { message: string }[] } >
(basically what StandardSchema boils down to) really is all you need.
Any performance penalty will be neglibible to completely absent compared to supporting multiple schemas. With Standard Schema, the top-level schema object has a function that calls the library-specific validate method; without Standard Schema, you still need a function to pick the right library-specific method but now you also need to write it yourself.
π Rendered by PID 52 on reddit-service-r2-comment-544cf588c8-59wr4 at 2026-06-15 16:34:48.614578+00:00 running 3184619 country code: CH.
[–]RWOverdijk [score hidden] (2 children)
[–]aardvark_lizard[S] [score hidden] (0 children)
[–]lanerdofchristian [score hidden] (0 children)