Skip to main content

UseSettings

What useSettings returns.

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

Signature​

import type { UseSettings } from "@mapcairn/map";

interface UseSettings

Properties​

persistent​

readonly persistent: boolean;

False when storage is blocked, so changes will not be remembered.

settings​

readonly settings: Settings;

The current settings.

update​

readonly update: (patch: Partial<Settings>) => void;

Merges a patch into the stored settings.

See also​

Source: packages/map/src/services/hooks.ts:233