Restate Typescript SDK
    Preparing search index...

    Variable ifaceConst

    iface: ServiceInterface = ...

    Declare a service interface (contract) as a runtime value carrying handler names + input/output serdes, without an implementation. Place it in a shared package that both the server (via implement()) and callers (via ctx.serviceClient(iface) / connect().serviceClient(iface)) import.

    const greeter = iface.service("greeter", {
    greet: iface.schemas({ input: GreetReq, output: GreetRes }),
    ping: iface.json<void, string>(),
    });