lago-javascript-client
Version:
Lago JavaScript API Client
6 lines (5 loc) • 382 B
TypeScript
import { Api, ApiConfig, HttpResponse } from "./openapi/client.js";
export declare const Client: (apiKey: string, apiConfig?: ApiConfig) => Api<unknown>;
type ExtractLagoError<E> = E extends (...args: any) => Promise<HttpResponse<infer T, infer P>> ? P : never;
export declare function getLagoError<T>(error: any): Promise<ExtractLagoError<T>>;
export * from "./openapi/client.js";