ModuleDefinition interface
Home > @rimitive/core > ModuleDefinition
ModuleDefinition interface
Section titled “ModuleDefinition interface”Input type for defineModule - same as Module but without status and with optional dependencies.
Signature:
export interface ModuleDefinition<TName extends string, TImpl, TDeps>Properties
Section titled “Properties”|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
(Optional) Modules this module depends on (resolved by compose) | |||
|
TName |
Unique name - becomes the property name on the composed context |
Methods
Section titled “Methods”|
Method |
Description |
|---|---|
|
Create the implementation with resolved dependencies | |
|
(Optional) Optional: called when context is disposed | |
|
(Optional) Optional: called when module is added to context | |
|
(Optional) Optional: wrap impl for debugging/profiling when instrumentation is enabled |