Skip to content

tyneq


tyneq

Classes

ClassDescription
OperatorMetadataMetadata describing a registered operator.
OperatorRegistryCentral registry for all Tyneq operators.
TyneqEntry point for creating Tyneq sequences.

Interfaces

InterfaceDescription
EnumeratorA pull-based iterator over a sequence.
EnumeratorFactoryA factory that produces a fresh Enumerator on demand.
EnumerableA lazy, re-iterable sequence.
TyneqSequenceThe primary public API for a lazy sequence - the type returned by all Tyneq operators.
TyneqOrderedSequenceA TyneqSequence with additional secondary sort keys applied.
TyneqCachedSequenceA TyneqSequence that caches elements as they are iterated.
OperatorEntryA fully resolved operator entry: metadata plus the prototype-level implementation.

Type Aliases

Type AliasDescription
CacheResultResult returned by the cache-lookup method on a memoized sequence.
MinMaxResultResult of minMax(), containing both the minimum and maximum elements.
KeyValuePairA key-value pair used by toMap() and toRecord() selectors.
OperatorSourceSource of an operator implementation, used internally to track where operators come from.
OperatorKindKind of an operator, used internally to categorize operators. Extends OperatorCategory with registry-only kinds.
SequenceConstructorConstructor type for a sequence class.
Nullable`T
Maybe`T
Optional`T
HasLengthAny object with a length property.
GenericFunctionAny function with any number of arguments.
ConstructorA constructor type that can be instantiated with new.
InstanceOfA type that extracts the instance type from a constructor.
NoInferA type that prevents inference of T in generic functions.
ActionA function that takes arguments of type TArgs (tuple) and returns void.
PredicateA function that takes arguments of type TArgs (tuple) and returns a boolean.
ItemPredicateA predicate over a sequence element and its zero-based index.
ItemSelectorA projection over a sequence element and its zero-based index.
ItemActionA side-effect action over a sequence element and its zero-based index.
FuncA function that takes arguments of type TArgs (tuple) and returns a value of type TResult.
BoundMethodA method callable on a specific this context, returning TReturn.
MethodA method callable on any this context with unknown arguments.
FactoryA factory function that creates an instance of type TInstance given arguments of type TArgs.
WithPropertiesA type representing an object with assignable properties.

Decorators

FunctionDescription
cachedOperatorClass decorator that registers a TyneqCachedEnumerator subclass as an operator available only on cached sequences.
cachedTerminalClass decorator that registers a TyneqCachedTerminalOperator subclass as a terminal operator available only on cached sequences.
operatorClass decorator that registers a TyneqEnumerator subclass as an operator on every sequence.
orderedOperatorClass decorator that registers a TyneqOrderedEnumerator subclass as an operator available only on ordered sequences.
orderedTerminalClass decorator that registers a TyneqOrderedTerminalOperator subclass as a terminal operator available only on ordered sequences.
terminalClass decorator that registers a class as a terminal operator.

Errors

ClassDescription
CompilerErrorThrown when the query plan compiler encounters a structural or semantic error while compiling a query plan into an executable sequence.
InvalidOperationErrorThrown when a method call is invalid for the current state of the object.
KeyNotFoundErrorThrown when a lookup is performed with a key that does not exist in the collection.
NotSupportedErrorThrown when a requested operation is not supported.
PluginErrorThrown when a plugin, decorator (@operator, @terminal), or factory (createOperator, createTerminalOperator) is used incorrectly.
ReflectionErrorThrown when a prototype reflection operation fails - for example, when a method that is expected to exist on a prototype cannot be found.
RegistryErrorThrown when the operator registry encounters a conflict or invalid state during operator registration or invocation.
SequenceContainsNoElementsErrorThrown when an element is required from a sequence that contains no elements.
TyneqErrorBase class for all errors thrown by Tyneq.
ArgumentErrorThrown when a method argument fails validation.
ArgumentNullErrorThrown when a required argument is null.
ArgumentOutOfRangeErrorThrown when an argument is outside the valid range.
ArgumentTypeErrorThrown when an argument has the wrong type.
ValidationErrorThrown when multiple argument validations fail simultaneously.

Factory Functions

FunctionDescription
createCachedOperatorRegisters a factory function as an operator available only on cached sequences, where the factory fully controls the return type.
createCachedTerminalOperatorRegisters a terminal operator available only on cached sequences.
createGeneratorOperatorRegisters an operator using a generator function.
createOperatorRegisters a streaming or buffering operator using a factory function.
createOrderedOperatorRegisters a factory function as an operator available only on ordered sequences, where the factory fully controls the return type.
createOrderedTerminalOperatorRegisters a terminal operator available only on ordered sequences.
createTerminalOperatorRegisters a terminal operator using a plain function.

Plugin

ClassDescription
TyneqBaseEnumeratorAbstract base class implementing the pull-iterator lifecycle for all Tyneq enumerators.
TyneqEnumeratorBase class for all pipeline operator enumerators (streaming and buffering).
TyneqCachedTerminalOperatorAbstract base for terminal operators that require a fully cached sequence.
TyneqOrderedTerminalOperatorAbstract base for terminal operators that require a fully ordered sequence.
TyneqTerminalOperatorAbstract base for all terminal operators.

QueryPlan

NameDescription
QueryPlanOptimizerA built-in QueryPlanTransformer that fuses redundant consecutive operators.
QueryPlanPrinterConverts a query plan tree into a human-readable multi-line string.
QueryPlanTransformerBase class for immutable query plan rewriting.
QueryPlanWalkerConcrete base class for side-effect query plan visitors.
CompileOptionsOptions for QueryPlanCompiler.compile and QueryPlanCompiler.compileRaw.
QueryPlanCompilerCompiles a query plan tree into an executable TyneqSequence.
tyneqQueryNodeSymbol key used to access the QueryPlanNode on a TyneqSequence.
OperatorCategoryCategories of operators.
SourceKindThe JavaScript collection type that backs a source node.
IQueryNodeA node in the query plan tree representing one operator in a pipeline.
isSourceNodeNarrows a QueryPlanNode to one that is guaranteed to have a sourceKind.
QueryPlanTraversalDirectionTraversal direction for QueryPlanWalker.
QueryPlanWalkerOptionsOptions for QueryPlanWalker.
QueryPlanVisitorVisitor for traversing a query plan tree.
QueryPlanPrinterOptionsOptions for QueryPlanPrinter.

Reflection

NameDescription
MethodDescriptorDescribes a method (function-valued own property) on a reflected target.
DataDescriptorDescribes a data property (non-function own value property) on a reflected target.
AccessorDescriptorDescribes an accessor property (get and/or set) on a reflected target.
MemberDescriptorA discriminated union of all member descriptor types returned by ReflectionContext.
ReflectOptionsOptions for the reflect factory.
ReflectionContextThe result of a reflect call. Provides typed access to the members of the reflected target.
reflectCreates a ReflectionContext for the given target.

Types

Type AliasDescription
ComparerA function that compares two values for ordering.
EqualityComparerA function that tests two values for equality.
IteratorFactoryFunction that produces a fresh Enumerator each time it is called.
AssumeNarrows T to U if T extends U; otherwise falls back to U.
CastIdentity type - preserves T as-is with no structural transformation.
MethodKeysExtracts the keys of T whose value type extends Function (i.e. methods).
FieldKeysExtracts the keys of T whose value type does NOT extend Function (i.e. data fields).

Utilities

ClassDescription
TyneqComparerBuilt-in comparers and equality comparers used by ordering and equality operators.
ArgumentUtilityFacade for all argument validation guards.
LazyUtility class for lazy initialization of values.
TypeGuardUtilityType guard predicates for Tyneq's core protocol types.
ValidationBuilderAccumulates validation errors and throws a single ValidationError containing all of them.