Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SourceEnclosure<T, D, U>

The most basic Source abstract class. The state and state$ properties, as well as the next method, are set as protected instead of public. For cases when these are only to be used internally.

Type parameters

  • T = any

  • D = Empty

  • U = T

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Protected constructor

  • new SourceEnclosure(state: T, deps: D, projection: UnaryFn<T, U> | Empty): SourceEnclosure

Properties

Protected deps

deps: D

Protected source

source: T

Accessors

Protected state

  • get state(): U

Protected state$

  • get state$(): Observable<U>
  • An multicast Observable that emits the new state when updated through the next method.

    Returns Observable<U>

Methods

Protected next

  • next(state: Partial<T>): void
  • Updates the instance state. If it is an object, it will create a new state object by merging state with the current instance state.

    Parameters

    • state: Partial<T>

    Returns void

Generated using TypeDoc