API Reference > bentleyjs-core > Collections > ObservableSet 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 core/bentley/src/ObservableSet.ts Line 14 Last Updated: 11 June, 2024