forked from Blendman974/faceclaw
Port navigate and weather
This commit is contained in:
1 parent
2b3e068a23
commit
9e18745e53
33 files changed
+630
-60
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { type TrackedLocation } from '../../native/location-types'
|
||||
import { type CompassEvent } from '../../native/compass-types'
|
||||
|
||||
export type NavigationSensorRequest =
|
||||
| { action: 'start'; id: number; intervalMs: number }
|
||||
| { action: 'stop'; id: number }
|
||||
| { action: 'compass'; enabled: boolean }
|
||||
export type NavigationSensorEvent =
|
||||
| { kind: 'location'; id: number; location: TrackedLocation }
|
||||
| { kind: 'error'; id: number; message: string }
|
||||
| { kind: 'compass'; event: CompassEvent; declination: number | null }
|
||||
Reference in new issue
Block a user