Skip to main content

LocateOptions

Options for a single location request.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { LocateOptions } from "@mapcairn/core";

interface LocateOptions

Properties​

signal​

readonly signal?: AbortSignal;

Cancels the request. It then rejects with a PortAbortError.

timeoutMs​

readonly timeoutMs?: number;

How long to wait for a fix, in milliseconds, before rejecting.

Source: packages/core/src/ports/location.ts:16