# CatalogueView

What the Layers section needs to know about the catalogue besides its layers.

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

## Signature

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

## Properties

### awaited

```ts
readonly awaited: boolean;
```

True when the catalogue was not ready at mount, so its list arrived or
will arrive later and an empty one is worth saying. False for a host whose
layers were there from the start.

### failed

```ts
readonly failed: boolean;
```

Whether the last attempt to load failed (see `loadFailed`), so Try again has something to do.

### refresh

```ts
readonly refresh: CatalogueRefresh;
```

Where a refresh of the list has got to. `idle` unless `ready`.

### skipped

```ts
readonly skipped: number;
```

How many definitions the host supplied that were left out. Zero unless `ready`.

### status

```ts
readonly status: CatalogueState["status"];
```

Whether the catalogue is loading, ready or failed.

## See also

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

Source: [packages/map/src/layers/catalogueView.ts:6](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/layers/catalogueView.ts#L6)
