kernel/modules/registry
Classes
Section titled “Classes”ModuleRegistry
Section titled “ModuleRegistry”Defined in: app/src/kernel/modules/registry.ts:8
Holds every known module manifest and checks the module graph: unique ids, known dependencies, no cycles, and core modules that only depend on core modules.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ModuleRegistry(
manifests):ModuleRegistry
Defined in: app/src/kernel/modules/registry.ts:16
Parameters
Section titled “Parameters”manifests
Section titled “manifests”readonly ModuleManifest[]
Manifests in registration order. The order breaks ties when the activation order is computed, so it stays deterministic.
Returns
Section titled “Returns”Throws
Section titled “Throws”ModuleError when the graph is invalid.
Methods
Section titled “Methods”all(): readonly
ModuleManifest[]
Defined in: app/src/kernel/modules/registry.ts:40
All manifests in registration order.
Returns
Section titled “Returns”readonly ModuleManifest[]
get(
id):ModuleManifest|undefined
Defined in: app/src/kernel/modules/registry.ts:48
Looks up a manifest.
Parameters
Section titled “Parameters”string
The module id.
Returns
Section titled “Returns”ModuleManifest | undefined
topologicalOrder()
Section titled “topologicalOrder()”topologicalOrder(): readonly
ModuleManifest[]
Defined in: app/src/kernel/modules/registry.ts:57
Orders all modules so that every module comes after its dependencies. Ties keep the registration order.
Returns
Section titled “Returns”readonly ModuleManifest[]
Throws
Section titled “Throws”ModuleError on a dependency cycle.
Variables
Section titled “Variables”ModuleRegistryToken
Section titled “ModuleRegistryToken”
constModuleRegistryToken:Token<ModuleRegistry>
Defined in: app/src/kernel/modules/registry.ts:87
Token for the ModuleRegistry.