Files
nage/engine/lib/MapProxy.ts
T
2026-03-08 14:11:33 +01:00

14 lines
268 B
TypeScript

import type { Box } from "#/engine/Box.ts";
export default class MapProxy<K, V> {
map: Map<K, Box<V>>;
constructor(iterable?: Iterable<readonly [K, Box<V>]>) {
this.map = new Map(iterable);
}
get(key: K): Box<V> | undefined {
return this.map.get(key);
}
}