Skip to main content

Module

Defined in: src/lib/module/index.ts:215

Module handle returned by registerModule. This is what gets exported from each module and imported by the runtime.

Properties

PropertyModifierTypeDescriptionDefined in
dependenciesreadonlyreadonly string[]Module dependencies.src/lib/module/index.ts:224
getServicepublic<T>(ServiceClass: ServiceClass<T>) => T | undefinedGet a service instance by class.src/lib/module/index.ts:249
getServicespublic() => readonly RpcModule[]Get all registered service instances.src/lib/module/index.ts:254
hudsreadonlyreadonly HudDefinition[]HUD features for persistent overlay elements.src/lib/module/index.ts:234
namereadonlystringModule name.src/lib/module/index.ts:219
pagesreadonlyRecord<string, PageDefinition>Page features for full-screen UI routes.src/lib/module/index.ts:229
startpublic() => Promise<void>Start the module. Called by the runtime.src/lib/module/index.ts:239
stoppublic() => Promise<void>Stop the module. Called by the runtime.src/lib/module/index.ts:244