@devbookhq/sdk
Version:
SDK for managing Devbook sessions from JavaScript/TypeScript
15 lines (14 loc) • 622 B
TypeScript
import 'cross-fetch/polyfill';
import type { components, paths } from './schema.gen';
declare const client: {
configure: (config: import("openapi-typescript-fetch/dist/cjs/types").FetchConfig) => void;
use: (mw: import("openapi-typescript-fetch").Middleware) => number;
path: <P extends keyof paths>(path: P) => {
method: <M extends keyof paths[P]>(method: M) => {
create: import("openapi-typescript-fetch/dist/cjs/types").CreateFetch<M, paths[P][M]>;
};
};
};
type ClientType = typeof client;
export default client;
export type { components, paths, ClientType };