From 342d8a0a22b6f7d3882a8d8e6de80b6f4fc6ea9a Mon Sep 17 00:00:00 2001 From: Kyra Date: Tue, 5 Feb 2019 22:06:15 +0100 Subject: [PATCH] fix: Added missing properties for FetchError Ref: https://github.com/bitinn/node-fetch/blob/e996bdab73baf996cf2dbf25643c8fe2698c3249/src/fetch-error.js#L20-L25 --- types/node-fetch/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/node-fetch/index.d.ts b/types/node-fetch/index.d.ts index 1177e8da25..03ae639d26 100644 --- a/types/node-fetch/index.d.ts +++ b/types/node-fetch/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Torsten Werner // Niklas Lindgren // Vinay Bedre +// Antonio Román // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -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 {