mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[SuperAgent] Fix Response.error type (#42146)
* fix Response.error type * remove trailing space
This commit is contained in:
parent
ea7ace3ea1
commit
d177ce08ba
9
types/superagent/index.d.ts
vendored
9
types/superagent/index.d.ts
vendored
@ -92,13 +92,20 @@ declare namespace request {
|
||||
response?: Response;
|
||||
}
|
||||
|
||||
interface HTTPError extends Error {
|
||||
status: number;
|
||||
text: string;
|
||||
method: string;
|
||||
path: string;
|
||||
}
|
||||
|
||||
interface Response extends NodeJS.ReadableStream {
|
||||
accepted: boolean;
|
||||
badRequest: boolean;
|
||||
body: any;
|
||||
charset: string;
|
||||
clientError: boolean;
|
||||
error: ResponseError;
|
||||
error: false | HTTPError;
|
||||
files: any;
|
||||
forbidden: boolean;
|
||||
get(header: string): string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user