Readonly
contextModified context.
Readonly
entryContext entry to define.
Readonly
recentThe most recent asset provided for the entry.
undefined
when no assets provided.
Readonly
supplyEntry value supply.
The assets won't be provided any more when cut off. If applicable, disables the entry value.
This entry depends on context values supply.
Iterates over value assets in the same order they are provided.
Passes each asset to the given callback
function, until the latter returns false
or there are no more
assets.
Assets callback.
Iterates over value assets with the most recent assets iterated first. I.e. in reverse order to the order they are provided.
Passes each asset to the given callback
function until the latter returns false
or there are no more assets.
Assets callback.
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.
Either context entry value, or a fallback one.
Creates a lazy evaluator against this
entry definition target instance.
Evaluation result type.
Evaluator function accepting this
entry definition target instance as its only parameter
and returning some result.
A function without parameters returning the evaluated result. The result will be evaluated at most once.
Creates a lazy evaluator against this
entry definition target instance.
A function without parameters returning the evaluated result. The result will be evaluated at most once.
Reads entry assets list and start tracking of their additions.
Sends a list of already provided assets to the given receiver
, then sends it again on whenever asset provided
or revoked, until the returned asset supply cut off.
Assets list receiver.
Optional
tracking: CxTrackingTracking options.
Assets list supply. Stops tracking once cut off.
Reads entry assets and start tracking of their additions.
Sends already provided assets to the given receiver
, then sends every added assets too, until the returned
asset supply cut off.
Assets receiver.
Optional
tracking: CxTrackingTacking options.
Assets supply. Stops tracking once cut off.
Reads the most recent entry asset and starts its tracking.
The most recent asset is the one with the smallest rank provided last.
Sends the recent asset to the given receiver
, then sends again whenever the recent asset changes. Sends
undefined
when there are no assets provided for the entry.
Most recent asset receiver.
Optional
tracking: CxTrackingTracking options.
Most recent assets supply. Stops tracking once cut off.
Generated using TypeDoc
Context entry definition target.
Passed to context entry to start the definition.
Allows to access context values and provide assets for them.