Skip to main content
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. ```ts import { assert } from "jsr:@std/assert"; const status = Deno.permissions.revokeSync({ name: "run" }); assert(status.state !== "granted") ```

Parameters

Return Type