Skip to content

API Reference

This reference covers every symbol exported from tyneq and its subpath exports (tyneq/plugin, tyneq/utility). Use the sidebar to browse by category, or the search bar to jump directly to a symbol.

Key entry points

SymbolWhere to start
TyneqStatic factory methods: from, range, empty, generate, repeat, concat, enumerate, random, isNullOrEmpty
TyneqSequenceAll streaming, buffering, and terminal operators available on every sequence
TyneqOrderedSequenceAdditional sort keys (thenBy, thenByDescending, asc, desc) - returned by orderBy
TyneqCachedSequenceCache invalidation (refresh) - returned by memoize
OperatorRegistryRuntime operator registration, listing, and guard hooks
TyneqComparerBuilt-in comparers and equality comparers for sorting and equality operators
QueryPlanPrinterPrint a pipeline's query plan as a readable string
QueryPlanOptimizerFuse consecutive same-kind nodes before execution
QueryPlanCompilerExecute a (possibly modified) query plan against a source

Subpath exports

  • tyneq - the main public API (sequences, factories, comparers, errors, query plan tooling)
  • tyneq/plugin - operator authoring API (createOperator, @operator, @terminal, enumerator base classes, OperatorRegistry) (OperatorRegistry is also available from the tyneq root export)
  • tyneq/utility - ValidationBuilder and ArgumentUtility for use in custom operator validate callbacks

Error hierarchy

All Tyneq errors extend TyneqError. Catch TyneqError to handle any library error, or catch specific subclasses:

ArgumentError - ArgumentNullError - ArgumentOutOfRangeError - ArgumentTypeError - InvalidOperationError - ValidationError - SequenceContainsNoElementsError - PluginError - CompilerError - ReflectionError

Full reference with internals

Contributors can generate a richer version locally that includes protected members and internal symbols:

bash
npm run docs:api:full

Then open api-reference/index.html in your browser.