source: imaps-frontend/node_modules/react-use/esm/usePermission.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 680 bytes
RevLine 
[d565449]1export declare type IState = PermissionState | '';
2interface IPushPermissionDescriptor extends PermissionDescriptor {
3 name: 'push';
4 userVisibleOnly?: boolean;
5}
6interface IMidiPermissionDescriptor extends PermissionDescriptor {
7 name: 'midi';
8 sysex?: boolean;
9}
10interface IDevicePermissionDescriptor extends PermissionDescriptor {
11 name: 'camera' | 'microphone' | 'speaker';
12 deviceId?: string;
13}
14export declare type IPermissionDescriptor = PermissionDescriptor | IPushPermissionDescriptor | IMidiPermissionDescriptor | IDevicePermissionDescriptor;
15declare const usePermission: (permissionDesc: IPermissionDescriptor) => IState;
16export default usePermission;
Note: See TracBrowser for help on using the repository browser.