# UseSettings

What [`useSettings`](https://docs.mapcairn.com/api/map/useSettings-function.md) returns.

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

## Signature

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

## Properties

### persistent

```ts
readonly persistent: boolean;
```

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

### settings

```ts
readonly settings: Settings;
```

The current settings.

### update

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

Merges a patch into the stored settings.

## See also

- [`Settings`](https://docs.mapcairn.com/api/core/Settings.md)

Source: [packages/map/src/services/hooks.ts:233](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/hooks.ts#L233)
