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