effect-io-ai

Package: @effect/platform-browser
Module: Geolocation

Geolocation.watchPosition

Reads geolocation positions from the Geolocation service as a stream, with an optional sliding buffer size.

Signature

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

Source

Since v4.0.0