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

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

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

The current status of the permission.

See: https://w3c.github.io/permissions/#status-of-a-permission

definition: "granted" | "denied" | "prompt"