Skip to content

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 ParameterDescription
TThe type of the source AsyncObservable's values
RThe type of the resulting AsyncObservable's values

See

Transforming Data

Released under the MIT License.