diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-02-12 23:14:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 23:14:33 +0100 |
commit | 8b5be962f5dad64da1363052a3fcd4432cc08a71 (patch) | |
tree | f9c072829f8bce9eb0f1aa55b20c154154eca984 /cli/tsc/dts/lib.deno.ns.d.ts | |
parent | dc66fdc11e86ae060e43dbeb417738c1b1995fe6 (diff) |
fix: add WouldBlock error (#17339)
Diffstat (limited to 'cli/tsc/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/tsc/dts/lib.deno.ns.d.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 33a568b65..d81e4afcd 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -220,6 +220,12 @@ declare namespace Deno { * @category Errors */ export class Interrupted extends Error {} /** + * Raised when the underlying operating system would need to block to + * complete but an asynchronous (non-blocking) API is used. + * + * @category Errors */ + export class WouldBlock extends Error {} + /** * Raised when expecting to write to a IO buffer resulted in zero bytes * being written. * @@ -4377,7 +4383,7 @@ declare namespace Deno { * const status = await Deno.permissions.query({ name: "read", path: "/etc" }); * console.log(status.state); * ``` - * + * * ```ts * const status = Deno.permissions.querySync({ name: "read", path: "/etc" }); * console.log(status.state); @@ -4391,7 +4397,7 @@ declare namespace Deno { * const status = await Deno.permissions.revoke({ name: "run" }); * assert(status.state !== "granted") * ``` - * + * * ```ts * import { assert } from "https://deno.land/std/testing/asserts.ts"; * @@ -4409,7 +4415,7 @@ declare namespace Deno { * console.log("'env' permission is denied."); * } * ``` - * + * * ```ts * const status = Deno.permissions.requestSync({ name: "env" }); * if (status.state === "granted") { |