Restate Typescript SDK
    Preparing search index...

    Type Alias FnOf<C, I, O>Internal

    FnOf: [I] extends [void]
        ? (ctx: C) => Promise<O>
        : (ctx: C, input: I) => Promise<O>

    A handler function whose input argument is dropped when I is void.

    Type Parameters

    • C
    • I
    • O