Skip to content

IListEvents

Type interface

Sources

IListEvents is an interface: it describes a shape of data and is not imported on its own.

Properties

clear

Type { oldValues: Array }

All items were removed, by clear() or setAll().

insertIndex

Type { index: number, newValue: A }

An item was inserted at index.

moveIndex

Type { newIndex: number, oldIndex: number, value: A }

An item was moved from oldIndex to newIndex.

push

Type { newValue: A }

An item was added to the end of the list.

removeIndex

Type { index: number, oldValue: A }

The item at index was removed.

setIndex

Type { index: number, newValue: A, oldValue: A }

The item at index was replaced.

swap

Type { a: A, b: A }

Two items swapped places.