PipeContext: {
    $index: number;
    $input: unknown[];
    $item: unknown;
    $key: string;
    $output: unknown;
}

Defines the context of a pipeline operation.

Type declaration

  • $index: number

    Numeric index of the iterator.

  • $input: unknown[]

    Input of the current iteration.

  • $item: unknown

    Target item in the iterator.

  • $key: string

    Array index as string or object key.

  • $output: unknown

    Output of the current iteration and the final output for the reducer.