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

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

import { assert } from "https://deno.land/std/testing/asserts.ts";

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