mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-28 21:03:48 +00:00
12 lines
528 B
TypeScript
12 lines
528 B
TypeScript
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 }
|