docs(cli/dts): remove stray new operators in examples (#10648)

This commit is contained in:
Casper Beyer 2021-05-15 21:20:37 +08:00 committed by GitHub
parent be2347ddc2
commit 808226f110
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 });
* ```
*/