Interface TemporalRequestClient

Minimal client surface the temporal helpers need. The SDK's HonuaClient satisfies this via pipelineRequestJson; tests can pass a stub. Query parameters belong on path.

interface TemporalRequestClient {
    pipelineRequestJson<T>(method: "GET" | "POST", path: string, init?: {
        body?: null | BodyInit;
        headers?: HeadersInit;
    }, signal?: AbortSignal): Promise<T>;
}

Methods

  • Type Parameters

    • T = unknown

    Parameters

    • method: "GET" | "POST"
    • path: string
    • Optionalinit: {
          body?: null | BodyInit;
          headers?: HeadersInit;
      }
      • Optionalbody?: null | BodyInit
      • Optionalheaders?: HeadersInit
    • Optionalsignal: AbortSignal

    Returns Promise<T>