Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.unstable.d.ts>Deno.PermissionName

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

The name of a "powerful feature" which needs permission.

See: https://w3c.github.io/permissions/#permission-registry

Note that the definition of PermissionName in the above spec is swapped out for a set of Deno permissions which are not web-compatible.

definition:
| "run"
| "read"
| "write"
| "net"
| "env"
| "plugin"
| "hrtime"