valtownOpenAPI
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
main.tsx
https://pomdtr--b4a29b10277f11f0b46e569c3dd06744.web.val.run
This val return an up-to-date typescript version of the val.town openapi spec for usage with a feTS client.
import { createClient, type NormalizeOAS } from "npm:fets"; import openapi from "https://pomdtr-valtownOpenAPI.web.val.run/openapi.ts"; export const client = createClient<NormalizeOAS<typeof openapi>>({ endpoint: openapi.servers[0].url, });