UNPKG

@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

49 lines (48 loc) 1.3 kB
export declare const enum RxNotificationKind { Suspense = "suspense", Next = "next", Error = "error", Complete = "complete" } export type RxNotificationValue = 'value' | 'hasValue'; export interface RxNextNotification<T> { value: T; /** * @deprecated Instead just check if RxNotificationKind is Next */ hasValue: boolean; kind: RxNotificationKind; error: boolean; complete: boolean; } export interface RxSuspenseNotification<T> { value: T; /** * @deprecated Instead just check if RxNotificationKind is Next */ hasValue: boolean; kind: RxNotificationKind.Suspense; error: false; complete: false; } export interface RxErrorNotification<T> { value: T; /** * @deprecated Instead just check if RxNotificationKind is Next */ hasValue: boolean; kind: RxNotificationKind.Error; error: any; complete: false; } export interface RxCompleteNotification<T> { value: T; /** * @deprecated Instead just check if RxNotificationKind is Next */ hasValue: boolean; kind: RxNotificationKind.Complete; complete: boolean; error: false; } export type RxNotification<T> = RxNextNotification<T> | RxSuspenseNotification<T> | RxErrorNotification<T> | RxCompleteNotification<T>;