(
options?:
| PositionOptions & {
readonly bufferSize?: number | undefined
}
| undefined
)
| 221 | * @since 4.0.0 |
| 222 | */ |
| 223 | export const watchPosition = ( |
| 224 | options?: |
| 225 | | PositionOptions & { |
| 226 | readonly bufferSize?: number | undefined |
| 227 | } |
| 228 | | undefined |
| 229 | ): Stream.Stream<GeolocationPosition, GeolocationError, Geolocation> => |
| 230 | Stream.unwrap(Effect.map( |
| 231 | Effect.service(Geolocation), |
| 232 | (geolocation) => geolocation.watchPosition(options) |
| 233 | )) |