# RuntimeLayerCatalogueOptions

What [`createRuntimeLayerCatalogue`](https://docs.mapcairn.com/api/core/createRuntimeLayerCatalogue.md) needs from the host.

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

## Signature

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

## Properties

### load

```ts
readonly load: (signal: AbortSignal) => Promise<unknown>;
```

Fetches the host's definitions, as the list its server returns. The
catalogue treats the result as untrusted: a value that is not a list is a
failure, and each entry is validated on its own. Reject for a failed
request, including a session that has expired, rather than resolve with
an empty list. `signal` fires only when the catalogue is disposed.

### onSkipped

```ts
readonly onSkipped?: (skipped: readonly SkippedDefinition[]) => void;
```

Told which definitions were left out, and why, after each load that
skipped any, so the host can log them. A person sees only a count. Its
errors are ignored: a logging fault must not stop the catalogue.

### options

```ts
readonly options: ValidationOptions;
```

The decoders and formatters the definitions may name.

## See also

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

Source: [packages/core/src/layers/runtimeLayerCatalogue.ts:17](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/runtimeLayerCatalogue.ts#L17)
