@electric-sql/d2ts
Version:
D2TS is a TypeScript implementation of Differential Dataflow.
18 lines (17 loc) • 767 B
TypeScript
import { PipedOperator } from '../types.js';
import { DifferenceStreamReader, DifferenceStreamWriter, UnaryOperator } from '../graph.js';
import { Antichain } from '../order.js';
/**
* Operator that logs debug information about the stream
*/
export declare class DebugOperator<T> extends UnaryOperator<T> {
#private;
constructor(id: number, inputA: DifferenceStreamReader<T>, output: DifferenceStreamWriter<T>, name: string, initialFrontier: Antichain, indent?: boolean);
run(): void;
}
/**
* Logs debug information about the stream using console.log
* @param name - The name to prefix debug messages with
* @param indent - Whether to indent the debug output
*/
export declare function debug<T>(name: string, indent?: boolean): PipedOperator<T, T>;