mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
docs(cli/dts): remove stray new operators in examples (#10648)
This commit is contained in:
parent
be2347ddc2
commit
808226f110
1 changed files with 2 additions and 2 deletions
4
cli/dts/lib.deno.unstable.d.ts
vendored
4
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -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 });
|
||||
* ```
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue