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.WritePermissionDescriptor

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

The permission descriptor for the allow-write permissions, which controls access to writing to resources from the local host. The option path allow scoping the permission to a specific path (and if the path is a directory any sub paths).

Permission granted under allow-write only allows runtime code to attempt to write, the underlying operating system may apply additional permissions.

Properties

name: "write"
optional
path: string | URL

The allow-write permission can be scoped to a specific path (and if the path is a directory, any sub paths).