Public
Script
1
2
3
4
5
6
7
8
import { Type } from "npm:@sinclair/typebox"
const querystring = Type.Object({
v: Type.Optional(Type.Integer({ minimum: 0 })),
})
console.log(JSON.stringify(querystring))
// {"type":"object","properties":{"v":{"minimum":0,"type":"integer"}}}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
July 15, 2024