BehaviorInterceptorTarget
BehaviorInterceptorTarget<
T> = (context,message) =>Behavior<T>
Defined in: src/typed/Behavior.ts:70
Hands a message on to the behavior an interceptor wraps, and answers what that behavior returned. Calling it is the delegation; not calling it short-circuits, and the wrapped behavior never sees the message.
Both arguments are the interceptor’s to choose: pass a different message to transform it on the way in, or a decorated context to change what the inner handler sees. Passing them through unchanged is the plain “observe, then delegate” case.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”context
Section titled “context”message
Section titled “message”T
Returns
Section titled “Returns”Behavior<T>
