prostgles-client
Version:
Reactive client for Postgres
9 lines • 603 B
TypeScript
import type { ClientSchema, ServerFunctionHandler } from "prostgles-types";
import type { InitOptions } from "./prostgles";
export type FunctionHandle<Args = any, Res = unknown> = (args: Args) => Promise<Res>;
export type ClientFunctionHandler = Partial<Record<string, FunctionHandle<any, unknown>>>;
export declare const getMethods: ({ onDebug, methods, socket, }: Pick<InitOptions, "onDebug" | "socket"> & Pick<ClientSchema, "methods">) => {
methodSchema: ServerFunctionHandler;
methodHandlers: Partial<Record<string, FunctionHandle<any, unknown>>>;
};
//# sourceMappingURL=getMethods.d.ts.map