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
|
Rev | Line | |
---|
[d565449] | 1 | export declare type IState = PermissionState | '';
|
---|
| 2 | interface IPushPermissionDescriptor extends PermissionDescriptor {
|
---|
| 3 | name: 'push';
|
---|
| 4 | userVisibleOnly?: boolean;
|
---|
| 5 | }
|
---|
| 6 | interface IMidiPermissionDescriptor extends PermissionDescriptor {
|
---|
| 7 | name: 'midi';
|
---|
| 8 | sysex?: boolean;
|
---|
| 9 | }
|
---|
| 10 | interface IDevicePermissionDescriptor extends PermissionDescriptor {
|
---|
| 11 | name: 'camera' | 'microphone' | 'speaker';
|
---|
| 12 | deviceId?: string;
|
---|
| 13 | }
|
---|
| 14 | export declare type IPermissionDescriptor = PermissionDescriptor | IPushPermissionDescriptor | IMidiPermissionDescriptor | IDevicePermissionDescriptor;
|
---|
| 15 | declare const usePermission: (permissionDesc: IPermissionDescriptor) => IState;
|
---|
| 16 | export default usePermission;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.