@dvxch/yandex-music
    Preparing search index...

    Type Alias FetchLike

    FetchLike: (
        url: string,
        init: {
            body?: string;
            headers: Record<string, string>;
            method: string;
            signal: AbortSignal;
        },
    ) => Promise<ResponseLike>

    The minimal fetch contract the transport relies on. The global fetch and drop-in replacements (e.g. node-wreq for browser TLS impersonation) both satisfy it, so either can be injected via RequestInit.fetch.

    Type Declaration

      • (
            url: string,
            init: {
                body?: string;
                headers: Record<string, string>;
                method: string;
                signal: AbortSignal;
            },
        ): Promise<ResponseLike>
      • Parameters

        • url: string
        • init: {
              body?: string;
              headers: Record<string, string>;
              method: string;
              signal: AbortSignal;
          }

        Returns Promise<ResponseLike>