@httpc/client
Version:
httpc client for building function-based API with minimal code and end-to-end type safety
20 lines • 649 B
TypeScript
import { HttpCClient, HttpCClientOptions } from "./client";
export type HttpCallDefinition = {
access: "read" | "write";
metadata?: Record<string, any>;
};
type CallTree = {
[k: string]: HttpCallDefinition | CallTree;
};
export type HttpCClientMetadata = CallTree;
export type HttpCTypedClientOptions = HttpCClientOptions & {
metadata?: HttpCClientMetadata;
mode?: "strict" | "loose";
};
export declare class HttpCTypedClient {
protected $metadata?: HttpCClientMetadata;
constructor(options?: HttpCTypedClientOptions);
readonly $client: HttpCClient;
}
export {};
//# sourceMappingURL=typed.d.ts.map