summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-03-11 01:35:33 +0100
committerGitHub <noreply@github.com>2022-03-11 01:35:33 +0100
commit8dc26971ecf2bac3d2448337cb5c8d6037cdcf8a (patch)
tree6e3a4ec9b4795e4fe5f365f5ee1b1b4eb969e5ec /cli/dts/lib.deno.unstable.d.ts
parent99816ad5065295bdbc30406e01b3b44bc1c4257b (diff)
types: add Deno.PermissionOptions and Deno.PermissionOptionsObject (#13892)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts15
1 files changed, 1 insertions, 14 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 8175e8dd9..e3def724c 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1203,20 +1203,7 @@ declare interface WorkerOptions {
deno?: boolean | {
namespace?: boolean;
/** Set to `"none"` to disable all the permissions in the worker. */
- permissions?: "inherit" | "none" | {
- env?: "inherit" | boolean | string[];
- hrtime?: "inherit" | boolean;
- /** The format of the net access list must be `hostname[:port]`
- * in order to be resolved.
- *
- * For example: `["https://deno.land", "localhost:8080"]`.
- */
- net?: "inherit" | boolean | string[];
- ffi?: "inherit" | boolean | Array<string | URL>;
- read?: "inherit" | boolean | Array<string | URL>;
- run?: "inherit" | boolean | Array<string | URL>;
- write?: "inherit" | boolean | Array<string | URL>;
- };
+ permissions?: Deno.PermissionOptions;
};
}