summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 6e9cf7789..d5797eb83 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -1135,9 +1135,6 @@ declare function fetch(
declare interface WorkerOptions {
/** UNSTABLE: New API.
*
- * Set deno.namespace to `true` to make `Deno` namespace and all of its
- * methods available to the worker environment. Defaults to `false`.
- *
* Configure permissions options to change the level of access the worker will
* have. By default it will have no permissions. Note that the permissions
* of a worker can't be extended beyond its parent's permissions reach.
@@ -1154,7 +1151,6 @@ declare interface WorkerOptions {
* new URL("deno_worker.ts", import.meta.url).href, {
* type: "module",
* deno: {
- * namespace: true,
* permissions: {
* read: true,
* },
@@ -1163,11 +1159,7 @@ declare interface WorkerOptions {
* );
* ```
*/
- // TODO(Soremwar)
- // `deno: boolean` is kept for backwards compatibility with the previous
- // worker options implementation. Remove for 2.0.
- deno?: boolean | {
- namespace?: boolean;
+ deno?: {
/** Set to `"none"` to disable all the permissions in the worker. */
permissions?: Deno.PermissionOptions;
};