Skip to content

API Reference

This section documents all public functions and types in aggregator-toy.

Pipeline Creation

Pipeline Methods

Grouping

  • groupBy - Group items by key properties

Aggregates

Scoping

  • in - Scope operations to nested paths

Property Management

Types

KeyedArray

typescript
type KeyedArray<T> = { key: string; value: T }[];

The fundamental data structure for grouped data.

Pipeline

typescript
interface Pipeline<T> {
  add(key: string, item: T): void;
  remove(key: string): void;
}

The built pipeline interface for adding and removing items.

TypeDescriptor

typescript
interface TypeDescriptor {
  arrays: ArrayDescriptor[];
}

interface ArrayDescriptor {
  name: string;
  type: TypeDescriptor;
}

Describes the nested structure of the pipeline output.

Released under the MIT License.