diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-10-13 18:04:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-13 13:04:44 -0400 |
| commit | 7a22df9b7641274b2a83ce53845215d17cfda2c8 (patch) | |
| tree | 6cf99f74682635a0128c5cf79f5f7d3ecfbc85f1 /cli/dts | |
| parent | 43a63530acb16e57cbb190eacedbd097c536a775 (diff) | |
fix(runtime/ops/worker_host): move permission arg parsing to Rust (#12297)
Diffstat (limited to 'cli/dts')
| -rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 1 | ||||
| -rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index eb91d6fa4..3fff1c61e 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2178,6 +2178,7 @@ declare namespace Deno { export interface FfiPermissionDescriptor { name: "ffi"; + path?: string | URL; } export interface HrtimePermissionDescriptor { diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 3bea165e5..fd33e1a74 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -910,10 +910,12 @@ declare namespace Deno { * If set to `"inherit"`, the current `ffi` permission will be inherited. * If set to `true`, the global `ffi` permission will be requested. * If set to `false`, the global `ffi` permission will be revoked. + * If set to `Array<string | URL>`, the `ffi` permission will be requested with the + * specified file paths. * * Defaults to "inherit". */ - ffi?: "inherit" | boolean; + ffi?: "inherit" | boolean | Array<string | URL>; /** Specifies if the `read` permission should be requested or revoked. * If set to `"inherit"`, the current `read` permission will be inherited. @@ -1237,7 +1239,7 @@ declare interface WorkerOptions { * For example: `["https://deno.land", "localhost:8080"]`. */ net?: "inherit" | boolean | string[]; - ffi?: "inherit" | boolean; + ffi?: "inherit" | boolean | Array<string | URL>; read?: "inherit" | boolean | Array<string | URL>; run?: "inherit" | boolean | Array<string | URL>; write?: "inherit" | boolean | Array<string | URL>; |
