@obsidize/rx-map
Version:
ES6 Map with rxjs extensions for change detection
21 lines (20 loc) • 555 B
TypeScript
/**
* Type marker on emitted MapStateChangeEvent instances.
*/
export declare enum MapStateChangeEventType {
SET = "SET",
DELETE = "DELETE"
}
export interface MapStateChangeEventContext {
readonly source: string;
[key: string]: any;
}
export interface MapStateChangeEvent<K, V> {
readonly type: MapStateChangeEventType;
readonly key: K;
readonly value?: V;
readonly previousValue?: V | Partial<V>;
readonly context: MapStateChangeEventContext;
changes?: Partial<V>;
changeType?: string;
}