Permissions
Errors
PermissionsError
Added in v1.0.0
Source
Signature
declare class PermissionsError extends any { constructor(); message: any;}Interface
Permissions interface
Added in v1.0.0
Source
Wrapper on the Permission API (navigator.permissions)
with methods for querying status of permissions.
Signature
interface Permissions { readonly [TypeId]: typeof TypeId; readonly query: <Name extends PermissionName>(name: Name) => Effect<Omit<PermissionStatus, "name"> & { name: Name; }, PermissionsError>;}Layers
Type Ids
ErrorTypeId
Added in v1.0.0
Source
Signature
declare const ErrorTypeId: unique symbolErrorTypeId type
Added in v1.0.0
Source
Signature
type ErrorTypeId = typeof ErrorTypeIdSignature
declare const TypeId: unique symbolSignature
type TypeId = typeof TypeId