/** * Key-value storage to share data between visits * * @template T Type of the stored values */ export default class Context { protected storage: Map = new Map(); put(key: string, value: T) { this.storage.set(key, value); } get(key: string): T | undefined { return this.storage.get(key); } }