From 911ddbc73334316cb100093bdaaaa77752232870 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers <34610306+GJZwiers@users.noreply.github.com> Date: Sat, 12 Feb 2022 16:15:54 +0100 Subject: [PATCH] chore(ext/fetch): render jsdoc code example properly (#13656) --- ext/fetch/lib.deno_fetch.d.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ext/fetch/lib.deno_fetch.d.ts b/ext/fetch/lib.deno_fetch.d.ts index 46a1cc3990..de92779087 100644 --- a/ext/fetch/lib.deno_fetch.d.ts +++ b/ext/fetch/lib.deno_fetch.d.ts @@ -424,13 +424,15 @@ declare class Response implements Body { text(): Promise; } -/** Fetch a resource from the network. It returns a Promise that resolves to the - * Response to that request, whether it is successful or not. +/** Fetch a resource from the network. It returns a `Promise` that resolves to the + * `Response` to that `Request`, whether it is successful or not. * - * const response = await fetch("http://my.json.host/data.json"); - * console.log(response.status); // e.g. 200 - * console.log(response.statusText); // e.g. "OK" - * const jsonData = await response.json(); + * ```ts + * const response = await fetch("http://my.json.host/data.json"); + * console.log(response.status); // e.g. 200 + * console.log(response.statusText); // e.g. "OK" + * const jsonData = await response.json(); + * ``` */ declare function fetch( input: Request | URL | string,