mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
docs(cli/dts): fix Deno.test permission examples (#10571)
This commit is contained in:
parent
2aa45f880e
commit
576f14baeb
1 changed files with 4 additions and 4 deletions
8
cli/dts/lib.deno.unstable.d.ts
vendored
8
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -1230,7 +1230,7 @@ declare namespace Deno {
|
|||
* const status = await Deno.permissions.query({ name: "net" })
|
||||
* assertEquals(status.state, "granted");
|
||||
* },
|
||||
* };
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ```ts
|
||||
|
@ -1243,7 +1243,7 @@ declare namespace Deno {
|
|||
* const status = await Deno.permissions.query({ name: "net" });
|
||||
* assertEquals(status.state, "granted");
|
||||
* },
|
||||
* };
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ```ts
|
||||
|
@ -1256,7 +1256,7 @@ declare namespace Deno {
|
|||
* const status = await Deno.permissions.query({ name: "net" });
|
||||
* assertEquals(status.state, "denied");
|
||||
* },
|
||||
* };
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* ```
|
||||
|
@ -1269,7 +1269,7 @@ declare namespace Deno {
|
|||
* const status = await Deno.permissions.query({ name: "net", host: "localhost:8080" });
|
||||
* assertEquals(status.state, "granted");
|
||||
* },
|
||||
* };
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
net?: "inherit" | boolean | string[];
|
||||
|
|
Loading…
Add table
Reference in a new issue