This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Description
The domain-tasks library has fetch returning Promise<any>, but should return a well-defined structure as the one found in lib.dom.d.ts:
Excerpt from that file:
interface Response extends Object, Body {
readonly body: ReadableStream | null;
readonly headers: Headers;
readonly ok: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
readonly redirected: boolean;
clone(): Response;
}
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
If it's intended to wrap the common fetch function perfectly, it should directly reference the types from lib.dom.d.ts.