themeparks - v7.0.0
    Preparing search index...

    Type Alias FetchLike

    FetchLike: (
        input: string | URL,
        init?: {
            body?: string;
            headers?: Record<string, string>;
            method?: string;
            signal?: AbortSignal;
        },
    ) => Promise<FetchLikeResponse>

    Minimal fetch-like function signature covering only what the SDK uses.

    Defined locally so consumers without the DOM lib (e.g. Node-only projects with lib: ["ES2022"] and older @types/node) don't pull globalThis.fetch, Response, or RequestInit into their emitted .d.ts when they import this SDK's types.

    At runtime the SDK still calls globalThis.fetch by default; this type is purely a structural subset so any spec-compatible fetch implementation (node's built-in, undici, whatwg-fetch, a user mock, etc.) satisfies it.

    Type Declaration

      • (
            input: string | URL,
            init?: {
                body?: string;
                headers?: Record<string, string>;
                method?: string;
                signal?: AbortSignal;
            },
        ): Promise<FetchLikeResponse>
      • Parameters

        • input: string | URL
        • Optionalinit: {
              body?: string;
              headers?: Record<string, string>;
              method?: string;
              signal?: AbortSignal;
          }

        Returns Promise<FetchLikeResponse>