UNPKG

indexed-collection

Version:

A zero-dependency library of classes that make filtering, sorting and observing changes to arrays easier and more efficient.

14 lines (11 loc) 356 B
import { IReadonlyCollection } from '../core/IReadonlyCollection'; import { Signal } from './Signal'; export class CollectionAddSignal<T> extends Signal { static readonly type = Symbol('COLLECTION_ADD'); constructor( target: IReadonlyCollection<T>, public readonly added: readonly T[] ) { super(CollectionAddSignal.type, target); } }