ObservableSet<T> Class

A standard Set that emits events when its contents change.

Extends

  • Set<T>

Methods

Name Description
constructor<T>(elements?: Iterable<T>): ObservableSet<T> Construct a new ObservableSet.  

Properties

Name Type Description
onAdded Readonly BeEvent<(item: T) => void> Emitted after item is added to this set.  
onCleared Readonly BeEvent<() => void> Emitted after this set's contents are cleared.  
onDeleted Readonly BeEvent<(item: T) => void> Emitted after item is deleted from this set.  

Defined in

Last Updated: 25 May, 2024