Primitives / foldkit-primitives/device

GeolocationModel

const · packages/primitives/src/device/geolocation.ts:15

const GeolocationModel: Schema.Struct<{
  readonly status: Schema.Literals<readonly ['unknown', 'ready', 'denied']>
  readonly coords: Schema.NullOr<
    Schema.Struct<{
      readonly latitude: Schema.Number
      readonly longitude: Schema.Number
      readonly accuracy: Schema.Number
    }>
  >
  readonly lastError: Schema.NullOr<Schema.String>
}>

Its type

type GeolocationModel = typeof GeolocationModel.Type