Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add DOMException to type definitions
- Loading branch information
Showing
with
5 additions
and
0 deletions.
-
+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; |
|
|
} |