Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.PermissionOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
type alias Deno.PermissionOptions
import { type Deno } from "https://deno.land/x/deno@v1.28.1/cli/dts/lib.deno.ns.d.ts";
const { PermissionOptions } = Deno;

Options which define the permissions within a test or worker context.

"inherit" ensures that all permissions of the parent process will be applied to the test context. "none" ensures the test context has no permissions. A PermissionOptionsObject provides a more specific set of permissions to the test context.

definition: "inherit" | "none" | PermissionOptionsObject