Taos API Reference
    Preparing search index...

    Type Alias FetchLike

    FetchLike: (
        input: string,
        init?: {
            headers?: Record<string, string>;
            method?: string;
            signal?: AbortSignal;
        },
    ) => Promise<
        {
            status: number;
            headers: { get(name: string): string | null };
            arrayBuffer(): Promise<ArrayBuffer>;
        },
    >

    Minimal injectable fetch shape, so tests can supply a mock.

    Type Declaration

      • (
            input: string,
            init?: {
                headers?: Record<string, string>;
                method?: string;
                signal?: AbortSignal;
            },
        ): Promise<
            {
                status: number;
                headers: { get(name: string): string | null };
                arrayBuffer(): Promise<ArrayBuffer>;
            },
        >
      • Parameters

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

        Returns Promise<
            {
                status: number;
                headers: { get(name: string): string | null };
                arrayBuffer(): Promise<ArrayBuffer>;
            },
        >