Merge pull request #32805 from kyranet/patch-1

[@types/node-fetch]: Added missing properties for FetchError
This commit is contained in:
Armando Aguirre
2019-02-08 13:22:05 -08:00
committed by GitHub
+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 {