restate-for-dummies
Version:
Type-safe Restate SDK wrapper with simplified API
23 lines • 1.24 kB
TypeScript
import type { Client, SendClient, Serde } from "@restatedev/restate-sdk";
import type { IngressClient, IngressSendClient, IngressWorkflowClient } from "@restatedev/restate-sdk-clients";
/**
* Wraps a client to automatically inject serde configuration
*/
export declare function wrapClient<THandlers>(client: Client<THandlers>, serde: Serde<unknown>): Client<THandlers>;
/**
* Wraps a send client to automatically inject serde configuration
*/
export declare function wrapSendClient<THandlers>(client: SendClient<THandlers>, serde: Serde<unknown>): SendClient<THandlers>;
/**
* Wraps an ingress client to automatically inject serde configuration
*/
export declare function wrapIngressClient<T>(client: IngressClient<T>, serde: Serde<unknown>): IngressClient<T>;
/**
* Wraps an ingress workflow client to automatically inject serde configuration
*/
export declare function wrapIngressWorkflowClient<T>(client: IngressWorkflowClient<T>, serde: Serde<unknown>): IngressWorkflowClient<T>;
/**
* Wraps an ingress send client to automatically inject serde configuration
*/
export declare function wrapIngressSendClient<T>(client: IngressSendClient<T>, serde: Serde<unknown>): IngressSendClient<T>;
//# sourceMappingURL=client-proxy.d.ts.map