Home > @idealeap/pipeline > BatchOptions
BatchOptions interface
Signature:
typescript
export interface BatchOptions<T, R>
export interface BatchOptions<T, R>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
onBatchData? | (inputs: T[]) => T[] | T | (Optional) | |
onBatchResult? | (results: Awaited<R>[]) => Awaited<R>[] | Awaited<R> | (Optional) | |
onData? | (input: T) => T | (Optional) | |
onError? | (error: any) => void | (Optional) | |
onProgress? | (completed: number, total: number) => void | (Optional) | |
onResult? | (result: Awaited<R>) => Awaited<R> | (Optional) |