Readonly
contextModified context.
Readonly
moduleThe module to set up.
Readonly
supplyModule supply.
This supply will be cut off once the module is unloaded.
Obtains value of the given context entry.
Requested context value type.
Context entry to obtain the value of.
Optional
request: WithoutFallback<TValue>Context value request with fallback specified.
Either context entry value, or a fallback one.
Obtains value of the given context entry, or returns a non-nullable fallback.
Requested context value type.
Context entry to obtain the value of.
Context value request with fallback specified.
Either context entry value, or a fallback one.
Obtains value of the given context entry, or returns a nullable fallback.
CxReferenceError - If the target entry
has no value and fallback one is not provided.
Requested context value type.
Context entry to obtain the value of.
Optional
request: CxRequest<TValue>Context value request.
Either context entry value, or a fallback one.
Registers the module initializer.
The module initializer registration is only valid during its setup.
The registered initializers executed after successful module setup. The modules is considered ready for use only when all registered initializers succeed.
The registered initializers executed serially. I.e. then next one does not start until the previous one succeeds.
It is an error calling this method when the module initialized already.
The module initialization function, that returns nothing when the module initialization completed synchronously, or a promise-like instance resolved when the module initialization completed asynchronously.
Provides assets for context CxAsset.entry entry.
All assets provided by this method will be revoked once the module unloaded.
Context entry asset.
Assets supply. Revokes provided assets once cut off.
Generated using TypeDoc
Context module setup.
Passed to module setup method in order to access and provide the necessary values.
Type Param
Target context type.