mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
docs: WorkerOptions
- fix permissions description (#14011)
This commit is contained in:
parent
6516130b01
commit
eb4daafc51
1 changed files with 3 additions and 3 deletions
6
cli/dts/lib.deno.unstable.d.ts
vendored
6
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -1376,11 +1376,11 @@ declare interface WorkerOptions {
|
|||
* Set deno.namespace to `true` to make `Deno` namespace and all of its
|
||||
* methods available to the worker environment. Defaults to `false`.
|
||||
*
|
||||
* Configure deno.permissions options to change the level of access the worker will
|
||||
* have. By default it will inherit the permissions of its parent thread. The permissions
|
||||
* 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.
|
||||
* - "inherit" will take the permissions of the thread the worker is created in
|
||||
* - You can disable/enable permissions all together by passing a boolean
|
||||
* - "none" will use the default behavior and have no permission
|
||||
* - You can provide a list of routes relative to the file the worker
|
||||
* is created in to limit the access of the worker (read/write permissions only)
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue