import { Cache } from './Cache'; export default class MeasurementStore | ReadonlyArray, V> implements Cache { map: WeakMap = new WeakMap(); get(key: T): V | null | undefined { return this.map.get(key); } has(key: T): boolean { return this.map.has(key); } set(key: T, value: V): void { this.map.set(key, value); } reset(): void { this.map = new WeakMap(); } }