Setup
import { ApiClient } from "@tahanabavi/typefetch";
import { grpcTransport } from "@tahanabavi/typefetch-grpc";
const client = new ApiClient(
{
baseUrl: "https://api.example.com",
transports: [grpcTransport({ baseUrl: "https://grpc.example.com" })],
},
contracts,
);
client.init();Registration is explicit, so an app that never registers this transport never ships a byte of it.