Skip to content

Type Alias: CollectionEventPayload<T> ​

CollectionEventPayload<T> = object

Defined in: src/types.ts:85

Payload of itemsAdded / itemsRemoved of an ActiveCollection

Type Parameters ​

T ​

T = any

Properties ​

index? ​

optional index?: number

Defined in: src/types.ts:90

position of the first affected item at the time of the change (collections only)


items ​

items: T[]

Defined in: src/types.ts:88

the items that were added / removed


keys? ​

optional keys?: unknown[]

Defined in: src/types.ts:92

the keys of those items (maps only)


target ​

target: ActiveCollection<any> | ActiveMap<any> | ActiveSet<any>

Defined in: src/types.ts:86