Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • State: StateDefining

  • Value

Hierarchy

  • Subscription

Index

Constructors

constructor

Properties

Private _current

_current: Value

Private _query

_query: QueryDescriptor<State, Value>

Private db

db: MutableDB<State>

Private subscribers

subscribers: Array<(value: Value) => void>

Private unsubscribe

unsubscribe: () => void

Type declaration

    • (): void
    • Returns void

Accessors

current

  • get current(): Value

query

  • get query(): QueryDescriptor<State, Value>
  • set query(query: QueryDescriptor<State, Value>): void

Methods

cancel

  • cancel(): void

subscribe

  • subscribe(callback: (value: Value) => void): () => void
  • Parameters

    • callback: (value: Value) => void
        • (value: Value): void
        • Parameters

          • value: Value

          Returns void

    Returns () => void

      • (): void
      • Returns void

Private trigger

  • trigger(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc