# FeatureSelectionControls

What the feature selection contract needs besides the store itself.

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

## Signature

```ts
import type { FeatureSelectionControls } from "@mapcairn/core/contracts";
 
interface FeatureSelectionControls
```

## Methods

### replaceExternally

```ts
replaceExternally?(refs: readonly FeatureRef[]): void;
```

Changes the set from outside the ui, as a host does when it hydrates or
restores a set after a failed save: no limit applies, and subscribers
are told once if the set changed. Optional: the hydration cases are
skipped for a store that has no such way in.

- `refs` (`readonly FeatureRef[]`)

## See also

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

Source: [packages/core/src/contracts/featureSelection.contract.ts:10](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/featureSelection.contract.ts#L10)
