summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-05-05 13:50:38 +0800
committerGitHub <noreply@github.com>2021-05-05 14:50:38 +0900
commit9c206545f7cd7db4d8c187d030058460797a22df (patch)
tree8016ec5a347d731a787177ed43e5c64d5c072380 /cli/dts/lib.deno.ns.d.ts
parentf44a5706e63cc8c9dad68d853dff36448ec45909 (diff)
docs(cli/dts): explicitly import assert in examples (#10495)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index d28742e2d..ff28b3117 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -1575,6 +1575,7 @@ declare namespace Deno {
* what it points to..
*
* ```ts
+ * import { assert } from "https://deno.land/std/testing/asserts.ts";
* const fileInfo = Deno.lstatSync("hello.txt");
* assert(fileInfo.isFile);
* ```
@@ -2247,6 +2248,7 @@ declare namespace Deno {
/** Revokes a permission, and resolves to the state of the permission.
*
* ```ts
+ * import { assert } from "https://deno.land/std/testing/asserts.ts";
* const status = await Deno.permissions.revoke({ name: "run" });
* assert(status.state !== "granted")
* ```
@@ -2411,6 +2413,7 @@ declare namespace Deno {
* Synchronously returns a `Deno.FileInfo` for the given file stream.
*
* ```ts
+ * import { assert } from "https://deno.land/std/testing/asserts.ts";
* const file = Deno.openSync("file.txt", { read: true });
* const fileInfo = Deno.fstatSync(file.rid);
* assert(fileInfo.isFile);
@@ -2422,6 +2425,7 @@ declare namespace Deno {
* Returns a `Deno.FileInfo` for the given file stream.
*
* ```ts
+ * import { assert } from "https://deno.land/std/testing/asserts.ts";
* const file = await Deno.open("file.txt", { read: true });
* const fileInfo = await Deno.fstat(file.rid);
* assert(fileInfo.isFile);