Class InjectableNopeEventEmitter<T, S, G>

RsJX based Observable.

Contains additional Functionalities like:

  • property with the current value
  • function to publish values. (wrapper for next)
  • enables performing a subscription with synced call or a immediate call.

Type Parameters

  • T

  • S = T

  • G = T

Hierarchy

Constructors

Properties

_subscriptions: Set<(() => void)> = ...

A Set containing the Subscriptions

disablePublishing: boolean = false

Flag to Disable Publishing

id: string = ...

An id of the Observable. This might be usefull for debugging.

options: any = ...

options.

setter: ((value, options?) => {
    data: T;
    valid: boolean;
}) = null

Type declaration

    • (value, options?): {
          data: T;
          valid: boolean;
      }
    • Function to specify a Setter

      Parameters

      Returns {
          data: T;
          valid: boolean;
      }

      • data: T
      • valid: boolean

Accessors

  • get hasSubscriptions(): boolean
  • Flag, showing if there exists any subscription this particular observer.

    Returns boolean

  • get observerLength(): number
  • Returns the amout of interessed Subscribers / Observers.

    Returns number

Methods

  • Create an enhanced Subscription of the Observable. Use the Pipes, to Define what should be subscribed.

    Type Parameters

    • K

    Parameters

    • next: ((data) => void)

      The Next Function, used to transmit changes

        • (data): void
        • Parameters

          • data: K

          Returns void

    • options: {
          pipe?: IPipe<T | G, K>;
          scope?: {
              [index: string]: any;
          };
      } = {}

      The Options, used to determine the Enhancements.

      • Optional pipe?: IPipe<T | G, K>
      • Optional scope?: {
            [index: string]: any;
        }
        • [index: string]: any

    Returns Subscription

Generated using TypeDoc