revoke method

Future<PermissionStatus> revoke(
  1. Object desc
)

Revokes a permission, and resolves to the state of the permission.

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

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

Implementation

_i2.Future<_i4.PermissionStatus> revoke(_i2.Object desc) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'revoke',
      [desc],
    ));