import { GenericMap } from './types'; /** * A generic wrapper to Map and WeakMap that can use both non-primitives * (objects and symbols) and primitives as keys, creating the underlying * storage as needed. */ export default class WeakishMap implements GenericMap { private weakMap?; private map?; set(k: A, v: B): this; get(k: A): B | undefined; has(k: A): boolean; }