@aspida/ky
ky client for aspida.
Getting Started
Installation
Make HTTP request from application
src/index.ts
import ky from "ky"
import aspida from "@aspida/ky"
import api from "../apis/$api"
const kyOptions = { timeout: 3000 }
const client = api(aspida(ky, kyOptions), "https://example.com/api")
;(async () => {
const userId = 0
const limit = 10
await client.v1.users.post({ name: "mario" })
const res = await client.v1.users.get({ query: { limit } })
console.log(res)
const user = await client.v1.users._userId(userId).$get()
console.log(user)
})()
License
aspida-ky is licensed under a MIT License.