Skip to content

Commit

Permalink
Fix ResponseError (DefinitelyTyped#42059)
Browse files Browse the repository at this point in the history
Only optional status and response fields
  • Loading branch information
morigs committed Feb 3, 2020
1 parent e211ea8 commit fc10467
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions types/superagent/index.d.ts
Expand Up @@ -88,10 +88,8 @@ declare namespace request {
}

interface ResponseError extends Error {
status: number;
text: string;
method: string;
path: string;
status?: number;
response?: Response;
}

interface Response extends NodeJS.ReadableStream {
Expand Down

0 comments on commit fc10467

Please sign in to comment.