@@ -211,9 +211,9 @@ export function avg<T>(
211
211
* Creates a min aggregate function that computes the minimum value in a group
212
212
* @param valueExtractor Function to extract a numeric value from each data entry
213
213
*/
214
- export function min < T , R , V > (
214
+ export function min < T , V > (
215
215
valueExtractor : ( value : T ) => V = ( v ) => v as unknown as V
216
- ) : AggregateFunction < T , R , V > {
216
+ ) : AggregateFunction < T , never , V > {
217
217
return {
218
218
preMap : ( data : T ) => valueExtractor ( data ) ,
219
219
reduce : ( values ) => {
@@ -232,9 +232,9 @@ export function min<T, R, V>(
232
232
* Creates a max aggregate function that computes the maximum value in a group
233
233
* @param valueExtractor Function to extract a numeric value from each data entry
234
234
*/
235
- export function max < T , R , V > (
235
+ export function max < T , V > (
236
236
valueExtractor : ( value : T ) => V = ( v ) => v as unknown as V
237
- ) : AggregateFunction < T , R , V > {
237
+ ) : AggregateFunction < T , never , V > {
238
238
return {
239
239
preMap : ( data : T ) => valueExtractor ( data ) ,
240
240
reduce : ( values ) => {
0 commit comments