UNPKG

indexed-collection

Version:

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

13 lines (11 loc) 231 B
/** * Signal is a base class for all signals. * */ export abstract class Signal { protected constructor( public readonly type: symbol, public readonly target: unknown ) {} } export type SignalType = Signal['type'];