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) • 367 B
text/typescript
import { IReadonlyCollection } from '../core/IReadonlyCollection';
import { Signal } from './Signal';
export class CollectionRemoveSignal<T> extends Signal {
static readonly type = Symbol('COLLECTION_REMOVE');
constructor(
target: IReadonlyCollection<T>,
public readonly removed: readonly T[]
) {
super(CollectionRemoveSignal.type, target);
}
}