Public
Script
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
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"}}}
July 15, 2024