fuzzyworld

north-star / files / src / globals.d.ts

globals.d.ts

601 B · history · blame

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