RuntimeLayerCatalogueOptions
What createRuntimeLayerCatalogue needs from the host.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { RuntimeLayerCatalogueOptions } from "@mapcairn/core";
interface RuntimeLayerCatalogueOptions
Properties
load
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
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
readonly options: ValidationOptions;
The decoders and formatters the definitions may name.
See also
Source: packages/core/src/layers/runtimeLayerCatalogue.ts:17