SubscriberConfigFilter
Defined in: src/types/subscription.ts:385
A single event to subscribe to / emit.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”filter
Section titled “filter”filter:
TransactionFilter
Defined in: src/types/subscription.ts:287
The filter itself.
Inherited from
Section titled “Inherited from”mapper()?
Section titled “mapper()?”
optionalmapper: (transaction) =>Promise<T[]>
Defined in: src/types/subscription.ts:392
An optional data mapper if you want the event data to take a certain shape when subscribing to events with this filter name.
If not specified, then the event will simply receive a SubscribedTransaction.
Note: if you provide multiple filters with the same name then only the mapper of the first matching filter will be used
Parameters
Section titled “Parameters”transaction
Section titled “transaction”Returns
Section titled “Returns”Promise<T[]>
name:
string
Defined in: src/types/subscription.ts:285
The name to give the filter.