Back to packages list

Vals using fets

Description from the NPM package:
TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
maxm avatar
fetsClientExample
@maxm
script
// The `response` and `greetings` have proper types automatically inferred
maxm avatar
fetsServerExample
@maxm
http
An interactive, runnable TypeScript val by maxm
pomdtr avatar
fets
@pomdtr
http
Fets Example A openapi JSON spec is available at https://pomdtr-fets.web.val.run/openapi.json . You can access a fully typed client with a single import: import { client } from "https://esm.town/v/pomdtr/fets"; const resp = await client["/greetings"].get(); const res = await resp.json(); console.log(res.message);
1
Next