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
| Symbol | Where to start |
|---|---|
Tyneq | Static factory methods: from, range, empty, generate, repeat, concat, enumerate, random, isNullOrEmpty |
TyneqSequence | All streaming, buffering, and terminal operators available on every sequence |
TyneqOrderedSequence | Additional sort keys (thenBy, thenByDescending, asc, desc) - returned by orderBy |
TyneqCachedSequence | Cache invalidation (refresh) - returned by memoize |
OperatorRegistry | Runtime operator registration, listing, and guard hooks |
TyneqComparer | Built-in comparers and equality comparers for sorting and equality operators |
QueryPlanPrinter | Print a pipeline's query plan as a readable string |
QueryPlanOptimizer | Fuse consecutive same-kind nodes before execution |
QueryPlanCompiler | Execute 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) (OperatorRegistryis also available from thetyneqroot export)tyneq/utility-ValidationBuilderandArgumentUtilityfor 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:fullThen open api-reference/index.html in your browser.