fix: Added missing properties for FetchError

Ref: https://github.com/bitinn/node-fetch/blob/e996bdab73baf996cf2dbf25643c8fe2698c3249/src/fetch-error.js#L20-L25
This commit is contained in:
Kyra
2019-02-05 22:06:15 +01:00
committed by GitHub
parent 1b3c5640f0
commit 342d8a0a22
+4
View File
@@ -3,6 +3,7 @@
// Definitions by: Torsten Werner <https://github.com/torstenwerner>
// Niklas Lindgren <https://github.com/nikcorg>
// Vinay Bedre <https://github.com/vinaybedre>
// Antonio Román <https://github.com/kyranet>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -134,6 +135,9 @@ export class Body {
export class FetchError extends Error {
name: "FetchError";
constructor(message: string, type: string, systemError: string);
type: string;
code?: string;
errno?: string;
}
export class Response extends Body {