Deno.Permissions.prototype.revokeSync - Deno documentation
method Deno.Permissions.prototype.revokeSync
Permissions.prototype.revokeSync(desc: PermissionDescriptor): PermissionStatus

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

Return Type