Add FlushStrategy as enum

This commit is contained in:
Jerry Kurian 2019-08-12 12:08:42 -04:00
parent e8d672d903
commit c72ecaf219

View File

@ -7,6 +7,7 @@ import {
TransformOptions,
WithEncoding,
JsonParseOptions,
FlushStrategy,
} from "./definitions";
/**
@ -249,7 +250,7 @@ export function parallelMap<T, R>(
export function accumulator(
batchSize: number,
batchRate: number | undefined,
flushStrategy: "sliding" | "rolling",
flushStrategy: FlushStrategy,
keyBy?: string,
) {
return baseFunctions.accumulator(