Type alias Operator<InputType, ResultType>
Operator<InputType, ResultType>: ((acc: ResultType, element: InputType) => ResultType | Promise<ResultType>)
Type declaration
-
- (acc: ResultType, element: InputType): ResultType | Promise<ResultType>
-
Parameters
-
acc: ResultType
-
element: InputType
Returns ResultType | Promise<ResultType>