I’m trying to use this in an Ionic Angular capacitor project, it is needed to get device orientation working in IOS, but it is not accepted by VS Code…
DeviceOrientationEvent.requestPermission()
any
Property ‘requestPermission’ does not exist on type ‘{ new (type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent; prototype: DeviceOrientationEvent; }’.ts(2339)