north-star / mobile / files / src / globals.d.ts
Branch mobile · default branch · all branches
globals.d.ts
92f24c4e 2026-03-16 Pavel Safronov | 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 | } |