UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

14 lines (13 loc) 660 B
import { OperatorFunction } from 'rxjs'; import { BuilderState } from '../types'; /** * Operator function that transforms a source Observable into an Observable of BuilderState. * It emits a BuilderPending state at the start, then a BuilderDone state when the source emits, * and a BuilderError state if the source errors out. * It also manages a global stack of pending builders. * @param stage * @param tag * @template T The type of the source Observable. * @returns {OperatorFunction<T, BuilderState<T>>} An OperatorFunction that can be used with pipe. */ export declare function builderState<T>(tag: string): OperatorFunction<T, BuilderState<T>>;