mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
feat: amend Body definition
This commit is contained in:
Vendored
+3
@@ -115,11 +115,14 @@ export class Blob {
|
||||
}
|
||||
|
||||
export class Body {
|
||||
constructor(body?: any, opts?: { size?: number; timeout?: number });
|
||||
blob(): Promise<Buffer>;
|
||||
bodyUsed: boolean;
|
||||
body: NodeJS.ReadableStream;
|
||||
json(): Promise<any>;
|
||||
json<T>(): Promise<T>;
|
||||
text(): Promise<string>;
|
||||
textConverted(): Promise<string>;
|
||||
buffer(): Promise<Buffer>;
|
||||
arrayBuffer(): Promise<ArrayBuffer>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user