ObservableSet<T> Class

A standard Set that emits events when its contents change.

Extends

  • Set<T>

Methods

Name Description
constructor<T>(elements?: Iterable<T, any, any>): ObservableSet<T> Construct a new ObservableSet.  
clear(): void If this set is not already empty, invokes Set.clear  
delete(item: T): boolean Invokes Set.delete, raising  

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: 17 December, 2024