summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-05-15 21:20:37 +0800
committerGitHub <noreply@github.com>2021-05-15 15:20:37 +0200
commit808226f1106b31e1a5755a4f66ee1c95589dac90 (patch)
treeb807977bb1bd51945129c6a68861f70adffdade7
parentbe2347ddc2b83e46e503a81f6aa32d5be631d361 (diff)
docs(cli/dts): remove stray new operators in examples (#10648)
-rw-r--r--cli/dts/lib.deno.unstable.d.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 3a6315d50..5b1d935ce 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1042,7 +1042,7 @@ declare namespace Deno {
* A custom HttpClient for use with `fetch`.
*
* ```ts
- * const client = new Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") });
+ * const client = Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") });
* const req = await fetch("https://myserver.com", { client });
* ```
*/
@@ -1064,7 +1064,7 @@ declare namespace Deno {
* Create a custom HttpClient for to use with `fetch`.
*
* ```ts
- * const client = new Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") });
+ * const client = Deno.createHttpClient({ caData: await Deno.readTextFile("./ca.pem") });
* const req = await fetch("https://myserver.com", { client });
* ```
*/