Back to packages list

Vals using zod

Description from the NPM package:
TypeScript-first schema declaration and validation library with static type inference
saolsen avatar
sudoku
@saolsen
Script
An interactive, runnable TypeScript val by saolsen
case avatar
market_kelly_bet
@case
HTTP
// Copied from https://github.com/Will-Howard/manifolio/blob/master/manifolio-ui/lib/calculate.ts
xkonti avatar
gptApiSchemaBuilder
@xkonti
Script
An interactive, runnable TypeScript val by xkonti
saolsen avatar
connect4
@saolsen
Script
An interactive, runnable TypeScript val by saolsen
webup avatar
parserSampleJSONZod
@webup
Script
An interactive, runnable TypeScript val by webup
tmcw avatar
zodUnserializable
@tmcw
Script
An interactive, runnable TypeScript val by tmcw
stevekrouse avatar
zodUnserializable
@stevekrouse
Script
Forked from tmcw/zodExample
devdoshi avatar
validators
@devdoshi
Script
Usage: async (rawInput) => { const validators = await @devdoshi.validators(); const inputSchema = validators.inputSchema(); const input = inputSchema.safeParse(rawInput); }
neverstew avatar
scheduleEmail
@neverstew
Script
This val allows you to send me an email at a certain datetime. Fun!
tmcw avatar
zodExample
@tmcw
Script
Zod Zod works great out-of-the-box with Val Town: just import it as npm:zod and parse something! Here's an example below. Tips Right now it's not possible to create a script val that immediately returns a Zod parser because its parsers can't be serialized. It's best to either expose a method that returns a parser, or to create and use the parser in the same val.
jacoblee93 avatar
runAgent
@jacoblee93
Script
An interactive, runnable TypeScript val by jacoblee93
alp avatar
bookReservationOnResy
@alp
Script
An interactive, runnable TypeScript val by alp
2
Next