More tests

This commit is contained in:
Jerry Kurian
2019-08-12 14:42:54 -04:00
parent c72ecaf219
commit 3a1fbf44d7
4 changed files with 187 additions and 11 deletions

View File

@@ -8,6 +8,7 @@ import {
WithEncoding,
JsonParseOptions,
FlushStrategy,
AccumulatorByIteratee,
} from "./definitions";
/**
@@ -260,3 +261,11 @@ export function accumulator(
keyBy,
);
}
export function accumulatorBy<T, S extends FlushStrategy>(
batchRate: number | undefined,
flushStrategy: S,
iteratee: AccumulatorByIteratee<T>,
) {
return baseFunctions.accumulatorBy(batchRate, flushStrategy, iteratee);
}