Skip to content

Home > @idealeap/pipeline > BatchOptions

BatchOptions interface

Signature:

typescript
export interface BatchOptions<T, R>
export interface BatchOptions<T, R>

Properties

PropertyModifiersTypeDescription
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)

Released under the MIT License.