Skip to content

Function: installSelectionWatcher()

installSelectionWatcher(opts?): SelectionWatcher

Defined in: aiui-intent-runtime/src/selection.ts:178

Install a debounced selectionchange watcher that keeps the last non-collapsed selection as a SelectionSnapshot. No-ops (returns a safe handle) without a DOM. See the module doc for the design rationale.

Parameters

opts?

SelectionWatcherOptions = {}

Returns

SelectionWatcher