Documentation / @eventkit/base / OperatorFunction
Type Alias: OperatorFunction<T, R>
ts
type OperatorFunction<T, R> = UnaryFunction<AsyncObservable<T>, AsyncObservable<R>>;
A function type interface that represents an operator that transforms an AsyncObservable of type T into an AsyncObservable of type R.
Operators are the building blocks for transforming, filtering, and manipulating observables. They take a source observable as input and return a new observable with the applied transformation.
Type Parameters
Type Parameter | Description |
---|---|
T | The type of the source AsyncObservable's values |
R | The type of the resulting AsyncObservable's values |