diff options
author | Luca Casonato <hello@lcas.dev> | 2022-03-16 01:43:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 01:43:14 +0100 |
commit | a7bef54d3f5517e8fd7508d47b6f56616e858695 (patch) | |
tree | 50a61ab538ff4c661adc473a47bfeb97f400ad38 /cli/dts/lib.deno.ns.d.ts | |
parent | bd481bf095f920a419ea55543f911e087f98f36f (diff) |
BREAKING: don't inherit permissions by default (#13668)
Previously specifying permissions: {} was the same as specifying
permissions: "inherit". Now it will be the same as permissions: "none".
Not specifying any permissions (permissions: undefined) still means
permissions: "inherit".
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index e02368bfa..99ce225f1 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -122,7 +122,7 @@ declare namespace Deno { * If set to `true`, the global `net` permission will be requested. * If set to `false`, the global `net` permission will be revoked. * - * Defaults to "inherit". + * Defaults to `false`. */ env?: "inherit" | boolean | string[]; @@ -131,7 +131,7 @@ declare namespace Deno { * If set to `true`, the global `hrtime` permission will be requested. * If set to `false`, the global `hrtime` permission will be revoked. * - * Defaults to "inherit". + * Defaults to `false`. */ hrtime?: "inherit" | boolean; @@ -142,7 +142,7 @@ declare namespace Deno { * if set to `string[]`, the `net` permission will be requested with the * specified host strings with the format `"<host>[:<port>]`. * - * Defaults to "inherit". + * Defaults to `false`. * * Examples: * @@ -213,7 +213,7 @@ declare namespace Deno { * If set to `true`, the global `ffi` permission will be requested. * If set to `false`, the global `ffi` permission will be revoked. * - * Defaults to "inherit". + * Defaults to `false`. */ ffi?: "inherit" | boolean | Array<string | URL>; @@ -224,7 +224,7 @@ declare namespace Deno { * If set to `Array<string | URL>`, the `read` permission will be requested with the * specified file paths. * - * Defaults to "inherit". + * Defaults to `false`. */ read?: "inherit" | boolean | Array<string | URL>; @@ -233,7 +233,7 @@ declare namespace Deno { * If set to `true`, the global `run` permission will be requested. * If set to `false`, the global `run` permission will be revoked. * - * Defaults to "inherit". + * Defaults to `false`. */ run?: "inherit" | boolean | Array<string | URL>; @@ -244,7 +244,7 @@ declare namespace Deno { * If set to `Array<string | URL>`, the `write` permission will be requested with the * specified file paths. * - * Defaults to "inherit". + * Defaults to `false`. */ write?: "inherit" | boolean | Array<string | URL>; } |