- Preparing search index...
- The search index is not available
cardano-sdk
Function withEventContext
- withEventContext<TContext, ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn>(createContext: ((evt: ExtChainSyncEvent<ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn>) => TContext | Observable<TContext>)): ExtChainSyncOperator<ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn, TContext, TContext>
-
Type Parameters
-
TContext
-
ExtraRollForwardPropsIn
-
ExtraRollBackwardPropsIn
Parameters
-
createContext: ((evt: ExtChainSyncEvent<ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn>) => TContext | Observable<TContext>)
-
- (evt: ExtChainSyncEvent<ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn>): TContext | Observable<TContext>
-
Returns TContext | Observable<TContext>
Returns ExtChainSyncOperator<ExtraRollForwardPropsIn, ExtraRollBackwardPropsIn, TContext, TContext>
Extend events with custom context (created per event)