Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Latest
interface Deno.FfiPermissionDescriptor
import { type Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { FfiPermissionDescriptor } = Deno;

The permission descriptor for the allow-ffi and deny-ffi permissions, which controls access to loading foreign code and interfacing with it via the Foreign Function Interface API available in Deno. The option path allows scoping the permission to a specific path on the host.

Properties

name: "ffi"
optional
path: string | URL

Optional path on the local host to scope the permission to.