Skip to content
Permalink
Browse files

Add DOMException to type definitions

  • Loading branch information
mislav committed Sep 7, 2018
1 parent afffe57 commit 114a580caae8b882758812eb2325ffdaa7f81959
Showing with 5 additions and 0 deletions.
  1. +5 −0 fetch.js.flow
@@ -106,9 +106,14 @@ declare class Response {
text(): Promise<string>;
}

declare class DOMException extends Error {
constructor(message?: string, name?: string): void;
}

declare module.exports: {
fetch(input: RequestInfo, init?: RequestOptions): Promise<Response>;
Headers: typeof Headers;
Request: typeof Request;
Response: typeof Response;
DOMException: typeof DOMException;
}

0 comments on commit 114a580

Please sign in to comment.