diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fetch/lib.deno_fetch.d.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts index de9277908..e538fe4ec 100644 --- a/ext/fetch/lib.deno_fetch.d.ts +++ b/ext/fetch/lib.deno_fetch.d.ts @@ -341,26 +341,26 @@ declare class Request implements Body { /** A simple getter used to expose a `ReadableStream` of the body contents. */ readonly body: ReadableStream<Uint8Array> | null; /** Stores a `Boolean` that declares whether the body has been used in a - * response yet. + * request yet. */ readonly bodyUsed: boolean; - /** Takes a `Response` stream and reads it to completion. It returns a promise + /** Takes a `Request` stream and reads it to completion. It returns a promise * that resolves with an `ArrayBuffer`. */ arrayBuffer(): Promise<ArrayBuffer>; - /** Takes a `Response` stream and reads it to completion. It returns a promise + /** Takes a `Request` stream and reads it to completion. It returns a promise * that resolves with a `Blob`. */ blob(): Promise<Blob>; - /** Takes a `Response` stream and reads it to completion. It returns a promise + /** Takes a `Request` stream and reads it to completion. It returns a promise * that resolves with a `FormData` object. */ formData(): Promise<FormData>; - /** Takes a `Response` stream and reads it to completion. It returns a promise + /** Takes a `Request` stream and reads it to completion. It returns a promise * that resolves with the result of parsing the body text as JSON. */ json(): Promise<any>; - /** Takes a `Response` stream and reads it to completion. It returns a promise + /** Takes a `Request` stream and reads it to completion. It returns a promise * that resolves with a `USVString` (text). */ text(): Promise<string>; |