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
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 symbol;ErrorTypeId type
Added in v1.0.0
Source
Signature
type ErrorTypeId = typeof ErrorTypeId;Signature
declare const TypeId: unique symbol;Signature
type TypeId = typeof TypeId;
Wrapper on the Permission API (
navigator.permissions) with methods for querying status of permissions.