@obsidize/rx-map
Version:
ES6 Map with rxjs extensions for change detection
13 lines (12 loc) • 461 B
TypeScript
/**
* Simple cache container used to relate a single id to a set of foreign keys.
* Allows for fast lookup times of one-to-many projections.
*/
export declare class OneToManyContext<PrimaryKeyType, ForeignKeyType> {
readonly id: PrimaryKeyType;
readonly foreignKeySet: Set<ForeignKeyType>;
constructor(id: PrimaryKeyType);
clear(): void;
getForeignKeys(): ForeignKeyType[];
setForeignKeys(keys: ForeignKeyType[]): void;
}