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-*.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ExportClassRegistry():
ExportClassRegistry
Returns
Section titled “Returns”ExportClassRegistry
Methods
Section titled “Methods”entries()
Section titled “entries()”entries(): [
string,ExportClassDefinition][]
Defined in: packages/core/src/export/registry.ts:144
All registrations, for docs tables and exhaustiveness tests.
Returns
Section titled “Returns”[string, ExportClassDefinition][]
get(
construct):ExportClassDefinition|undefined
Defined in: packages/core/src/export/registry.ts:117
Look up a construct; undefined when unregistered.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
construct | string |
Returns
Section titled “Returns”ExportClassDefinition | undefined
has(
construct):boolean
Defined in: packages/core/src/export/registry.ts:139
Whether a construct is registered.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
construct | string |
Returns
Section titled “Returns”boolean
register()
Section titled “register()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
construct | string |
definition | ExportClassDefinition |
Returns
Section titled “Returns”void
require()
Section titled “require()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
construct | string |