A function that receives a value of type T and returns a (possibly async) value of the same type T. The input is marked as readonly to discourage mutation of the original object.
T
readonly
The value type intercepted and returned.
The current (readonly) value in the interception chain.
The next value for the chain, either directly or via a promise.
Implementations SHOULD avoid mutating value and instead return a new or safely-updated instance.
value
InterceptorManager
A function that receives a value of type
Tand returns a (possibly async) value of the same typeT. The input is marked asreadonlyto discourage mutation of the original object.