Geolocation
Accessors
watchPosition
Added in v1.0.0
Source
Signature
declare function watchPosition(
options?: PositionOptions & {
readonly bufferSize?: number;
},
): Stream<GeolocationPosition, GeolocationError, Geolocation>;Errors
GeolocationError
Added in v1.0.0
Source
Signature
declare class GeolocationError extends any {
constructor();
message: any;
}Layers
Models
Geolocation interface
Added in v1.0.0
Source
Signature
interface Geolocation {
readonly [TypeId]: typeof TypeId;
readonly getCurrentPosition: (
options?: PositionOptions,
) => Effect<GeolocationPosition, GeolocationError>;
readonly watchPosition: (
options?: PositionOptions & {
readonly bufferSize?: number;
},
) => Stream<GeolocationPosition, GeolocationError>;
}Type Ids
ErrorTypeId
Added in v1.0.0
Source
Signature
declare const ErrorTypeId: unique symbol;ErrorTypeId type
Added in v1.0.0
Source
Signature
type ErrorTypeId = typeof ErrorTypeId;Signature
declare const TypeId: unique symbol;Signature
type TypeId = typeof TypeId;