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>
Since v1.0.0
errors
GeolocationError (class)
Signature
declare class GeolocationError
Since v1.0.0
layers
layer
Signature
declare const layer: Layer.Layer<Geolocation>
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>
}
Since v1.0.0
tags
Geolocation
Signature
declare const Geolocation: Context.Tag<Geolocation, Geolocation>
Since v1.0.0
type ids
ErrorTypeId
Signature
declare const ErrorTypeId: unique symbol
Since v1.0.0
ErrorTypeId (type alias)
Signature
type ErrorTypeId = typeof ErrorTypeId
Since v1.0.0
TypeId
Signature
declare const TypeId: unique symbol
Since v1.0.0
TypeId (type alias)
Signature
type TypeId = typeof TypeId
Since v1.0.0