@rx-angular/cdk
Version:
@rx-angular/cdk is a Component Development Kit for ergonomic and highly performant angular applications. It helps to to build Large scale applications, UI libs, state management, rendering systems and much more. Furthermore the unique way of mixing reacti
21 lines (20 loc) • 1.05 kB
TypeScript
import { Observable, ObservableInput, Subscribable } from 'rxjs';
import { RxNotification } from './model';
/**
* @internal
*
* @description
* This factory function returns an object that can be driven imperatively over a `next` method.
* Internally it prepares the incoming values for rendering by turning them into "template notifications",
* an extended `ObservableNotification` object used to determine the respective template for values, errors, completing
* or suspense states.
*
* Internally it handles different edge cases for initial emits. This helps to have or template creation lazy.
* Also it maps any Observable to RxNotifications. These notifications are bound to the view later and handle the
* display of the default template as well as the suspense, error, complete templates.
*/
export declare function createTemplateNotifier<U>(): {
values$: Observable<RxNotification<U>>;
next(observable: ObservableInput<U> | U | Subscribable<U>): void;
withInitialSuspense(withInitialSuspense: boolean): void;
};