Skip to content

Commit 6bab62a

Browse files
committed
fix: remove unused generic value.
1 parent a8d6e28 commit 6bab62a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/db-ivm/src/operators/groupBy.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)