valtown-openapi
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Val Town OpenApi

This package contains the openapi specs for the Val Town Api.

Usage

This package is supposed to be used in conjunction with a feTS client.

import { createClient, type NormalizeOAS } from "fets";
import type openapi from "valtown-openapi";

const client = createClient<NormalizeOAS<typeof openapi>>({});

const pomdtr = await client["/v1/alias/{username}"].get({
  params: {
    username: "pomdtr",
  },
});

const pets = await response.json();
console.log(pomdtr);

Readme

Keywords

none

Package Sidebar

Install

npm i valtown-openapi

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

39.2 kB

Total Files

4

Last publish

Collaborators

  • pomdtr