Skip to content

ExportClassRegistry

Defined in: packages/core/src/export/registry.ts:90

The registry. Keys are construct names, namespaced by where the construct lives: layer.interactive, source.refresh, map.options, controls, state, x-*.

new ExportClassRegistry(): ExportClassRegistry

ExportClassRegistry

entries(): [string, ExportClassDefinition][]

Defined in: packages/core/src/export/registry.ts:144

All registrations, for docs tables and exhaustiveness tests.

[string, ExportClassDefinition][]


get(construct): ExportClassDefinition | undefined

Defined in: packages/core/src/export/registry.ts:117

Look up a construct; undefined when unregistered.

ParameterType
constructstring

ExportClassDefinition | undefined


has(construct): boolean

Defined in: packages/core/src/export/registry.ts:139

Whether a construct is registered.

ParameterType
constructstring

boolean


register(construct, definition): void

Defined in: packages/core/src/export/registry.ts:94

Register a construct. Throws on duplicates and on class/export-hook mismatch.

ParameterType
constructstring
definitionExportClassDefinition

void


require(construct): ExportClassDefinition

Defined in: packages/core/src/export/registry.ts:125

Look up a construct the emitter is about to act on. Unregistered is a thrown error — the loud-failure half of the closed world.

ParameterType
constructstring

ExportClassDefinition