API reference
/client
@senrijs/senri/client: A typed client made from the type of a route table
A typed client made from the type of a route table.
import { ... } from "@senrijs/senri/client";Functions and classes
| Name | What it does |
|---|---|
client<Api>(baseUrl, options?) | Creates a client |
Types
ClientOptions
Prop
Type
CallOptions
Prop
Type
The result type is ClientResultOf<Api, Key>. The other types (ClientData, ClientErrors and so on) are the parts it is built from.
Source: src/client.ts