UnaryFunction
A function type interface that describes a function that accepts one parameter T
and returns another parameter R
.
Usually used to describe OperatorFunction - it always takes a single parameter (the source Observable) and returns another Observable.
interface UnaryFunction <T, R> {
(source: T): R;
}