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, });
https://pomdtr-valtownopenapi.web.val.run
https://esm.town/v/pomdtr/valtownOpenAPI
<script type="module" src="https://esm.town/v/pomdtr/valtownOpenAPI" />