Type Alias RequestResponseOptions<TRequest, TResp>

RequestResponseOptions<TRequest, TResp>: {
    key: ((requestOrResp: TRequest | TResp) => string);
    keyRequest: ((request: TRequest) => string);
    keyResponse: ((resp: TResp) => string);
    timeoutMs: number;
    whenUnmatchedResponse: "ignore" | "throw";
}

Type Parameters

  • TRequest
  • TResp