UNPKG

lago-javascript-client

Version:
6 lines (5 loc) 382 B
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";