Skip to main content
method Deno.Permissions.prototype.revokeSync

Revokes a permission, and returns the state of the permission.

import { assert } from "jsr:@std/assert";

const status = Deno.permissions.revokeSync({ name: "run" });
assert(status.state !== "granted")

Parameters

desc: PermissionDescriptor

Returns

PermissionStatus