@@ -211,9 +211,9 @@ export function avg<T>(
211211 * Creates a min aggregate function that computes the minimum value in a group
212212 * @param valueExtractor Function to extract a numeric value from each data entry
213213 */
214- export function min < T , R , V > (
214+ export function min < T , V > (
215215 valueExtractor : ( value : T ) => V = ( v ) => v as unknown as V
216- ) : AggregateFunction < T , R , V > {
216+ ) : AggregateFunction < T , never , V > {
217217 return {
218218 preMap : ( data : T ) => valueExtractor ( data ) ,
219219 reduce : ( values ) => {
@@ -232,9 +232,9 @@ export function min<T, R, V>(
232232 * Creates a max aggregate function that computes the maximum value in a group
233233 * @param valueExtractor Function to extract a numeric value from each data entry
234234 */
235- export function max < T , R , V > (
235+ export function max < T , V > (
236236 valueExtractor : ( value : T ) => V = ( v ) => v as unknown as V
237- ) : AggregateFunction < T , R , V > {
237+ ) : AggregateFunction < T , never , V > {
238238 return {
239239 preMap : ( data : T ) => valueExtractor ( data ) ,
240240 reduce : ( values ) => {
0 commit comments