north-star / files / src / globals.d.ts
globals.d.ts
| 1 | interface DeviceOrientationEvent { |
| 2 | webkitCompassHeading?: number; |
| 3 | } |
| 4 | |
| 5 | interface DeviceOrientationEventConstructor { |
| 6 | new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; |
| 7 | prototype: DeviceOrientationEvent; |
| 8 | requestPermission?: () => Promise<'granted' | 'denied'>; |
| 9 | } |
| 10 | |
| 11 | declare var DeviceOrientationEvent: DeviceOrientationEventConstructor; |
| 12 | |
| 13 | interface NavigatorUAData { |
| 14 | getHighEntropyValues: (hints: string[]) => Promise<{ model?: string }>; |
| 15 | } |
| 16 | |
| 17 | interface Navigator { |
| 18 | userAgentData?: NavigatorUAData; |
| 19 | } |
| 20 | |
| 21 | interface Window { |
| 22 | orientation?: number; |
| 23 | } |