Documentation / @eventkit/base / UnaryFunction
Type Alias: UnaryFunction()<T, R>
ts
type UnaryFunction<T, R> = (value) => R;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 AsyncObservable) and returns another AsyncObservable.
Type Parameters
| Type Parameter |
|---|
T |
R |
Parameters
| Parameter | Type |
|---|---|
value | T |
Returns
R