rx-debugger
Version:
Easily debug rxjs pipes
19 lines • 767 B
TypeScript
import { Observable } from 'rxjs';
import { LoggerConfig } from './logger';
import { SerializerConfig } from './serializer';
/**
* Config object to be passed to {@link rxDebugger} function.
*/
export interface Config {
logger?: LoggerConfig;
serializer?: SerializerConfig;
}
/**
* Patches source observable in order to debug pipes.
* Please note that no new observable is created, this function returns original instance patched.
* If no config object is provided, the result will be written in console using a table.
* @param source observable to patch.
* @param config optional config object.
*/
export declare function rxDebugger<T>(source: Observable<T>, config?: Config): Observable<T>;
//# sourceMappingURL=rx-debugger.d.ts.map