Skip to Content
Senri
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

NameWhat 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

On this page