mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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:
Vendored
+4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user