Class MonitoringStore<T>

Store that notifies listeners of changes to its source by emitting a changed event.

Type Parameters

Hierarchy

Implements

Constructors

Properties

addListener: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
emit: ((event, ...args) => boolean) & ((event, ...args) => boolean)
eventNames: (() => "changed"[]) & (() => ("https://www.w3.org/ns/activitystreams#Create" | "https://www.w3.org/ns/activitystreams#object" | "https://www.w3.org/ns/activitystreams#Add" | "https://www.w3.org/ns/activitystreams#Delete" | "https://www.w3.org/ns/activitystreams#Remove" | "https://www.w3.org/ns/activitystreams#Update")[])
listenerCount: ((event) => number) & ((event) => number)
listeners: ((event) => ((target, activity, metadata) => void)[]) & ((event) => ((target, metadata) => void)[])
off: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
on: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
once: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
prependListener: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
prependOnceListener: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
rawListeners: ((event) => ((target, activity, metadata) => void)[]) & ((event) => ((target, metadata) => void)[])
removeAllListeners: ((event) => MonitoringStore<T>) & ((event) => MonitoringStore<T>)
removeListener: ((event, listener) => MonitoringStore<T>) & ((event, listener) => MonitoringStore<T>)
source: T

Methods

  • Returns number

  • Parameters

    • Optional term: Term

    Returns term is NamedNode<"https://www.w3.org/ns/activitystreams#Create"> | NamedNode<"https://www.w3.org/ns/activitystreams#Add"> | NamedNode<"https://www.w3.org/ns/activitystreams#Delete"> | NamedNode<"https://www.w3.org/ns/activitystreams#Remove"> | NamedNode<"https://www.w3.org/ns/activitystreams#Update">

  • Parameters

    • n: number

    Returns MonitoringStore<T>