Add FlushStrategy as enum
This commit is contained in:
parent
e8d672d903
commit
c72ecaf219
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user