Skip to main content Link Search Menu Expand Document (external link)

Geolocation.ts overview

Since v1.0.0


Exports Grouped by Category


accessors

watchPosition

Signature

declare const watchPosition: (
  options?: (PositionOptions & { readonly bufferSize?: number | undefined }) | undefined
) => Stream.Stream<GeolocationPosition, GeolocationError, Geolocation>

Source

Since v1.0.0

errors

GeolocationError (class)

Signature

declare class GeolocationError

Source

Since v1.0.0

layers

layer

Signature

declare const layer: Layer.Layer<Geolocation>

Source

Since v1.0.0

models

Geolocation (interface)

Signature

export interface Geolocation {
  readonly [TypeId]: TypeId
  readonly getCurrentPosition: (
    options?: PositionOptions | undefined
  ) => Effect.Effect<GeolocationPosition, GeolocationError>
  readonly watchPosition: (
    options?:
      | (PositionOptions & {
          readonly bufferSize?: number | undefined
        })
      | undefined
  ) => Stream.Stream<GeolocationPosition, GeolocationError>
}

Source

Since v1.0.0

tags

Geolocation

Signature

declare const Geolocation: Context.Tag<Geolocation, Geolocation>

Source

Since v1.0.0

type ids

ErrorTypeId

Signature

declare const ErrorTypeId: unique symbol

Source

Since v1.0.0

ErrorTypeId (type alias)

Signature

type ErrorTypeId = typeof ErrorTypeId

Source

Since v1.0.0

TypeId

Signature

declare const TypeId: unique symbol

Source

Since v1.0.0

TypeId (type alias)

Signature

type TypeId = typeof TypeId

Source

Since v1.0.0