class Deno.PermissionStatus
extends EventTarget
An EventTarget
returned from the Deno.permissions
API which can provide updates to any state changes of the permission.
Properties Jump to heading
Jump to headingonchange: ((this: PermissionStatus,ev: Event,) => any) | null
readonly
Jump to headingpartial: boolean
Describes if permission is only granted partially, eg. an access
might be granted to "/foo" directory, but denied for "/foo/bar".
In such case this field will be set to true
when querying for
read permissions of "/foo" directory.
readonly
Jump to headingstate: PermissionState
Methods Jump to heading
Jump to headingaddEventListener<K extends keyof PermissionStatusEventMap>(type: K,listener: (this: PermissionStatus,ev: PermissionStatusEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
Jump to headingaddEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
Jump to headingremoveEventListener<K extends keyof PermissionStatusEventMap>(type: K,listener: (this: PermissionStatus,ev: PermissionStatusEventMap[K],) => any,options?: boolean | EventListenerOptions,): void
Jump to headingremoveEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | EventListenerOptions,): void