# readyLayers

The layers a state offers: its list when `ready`, and none while the
catalogue is `loading` or has `failed`. The same array every time for a
state, so it is safe in a dependency list.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { readyLayers } from "@mapcairn/core";
 
function readyLayers(state: CatalogueState): readonly LayerDefinition[];
```

## Parameters

- `state` (`CatalogueState`)

## Returns

`readonly LayerDefinition[]`

## See also

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

Source: [packages/core/src/layers/catalogueState.ts:34](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/catalogueState.ts#L34)
