Documentation
    Preparing search index...

    Type Alias GenericCall<REQ, RES>

    Call a handler directly avoiding restate's type safety checks. This is a generic mechanism to invoke handlers directly by only knowing the service and handler name, (or key in the case of objects or workflows)

    type GenericCall<REQ, RES> = {
        headers?: Record<string, string>;
        idempotencyKey?: string;
        inputSerde?: Serde<REQ>;
        key?: string;
        method: string;
        outputSerde?: Serde<RES>;
        parameter: REQ;
        service: string;
    }

    Type Parameters

    • REQ
    • RES
    Index

    Properties

    headers?: Record<string, string>
    idempotencyKey?: string
    inputSerde?: Serde<REQ>
    key?: string
    method: string
    outputSerde?: Serde<RES>
    parameter: REQ
    service: string