Skip to content

IListEvents

Type interface

Defines events for the List.

Sources

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

Properties

inserted

Type { newValue: A }

Invoked when item is added to the list.

insertIndex

Type { index: number, newValue: A }

Invoked when insertIndex method is called.

removed

Type { oldValue: A }

Invoked when item is removed from the list.

removeIndex

Type { index: number, oldValue: A }

Invoked when item is removed.

setAll

Type { newArray: Array <A>, oldArray: Array <A> }

Invoked when setAll method is called.

setIndex

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

Invoked when setIndex method is called.