/** * A map, will throw error when try to get not exists key */ export declare class RequiredMap extends Map { /** * Get value from map, if not exists, throw an error */ get(id: K): V; /** * Get value from map, if not exists, return def instead (not insert it into map) */ get(id: K, def: V): V; /** * Get a value, if not exists, call init() and save to map */ entry(id: K, init: (id: K) => V): V; } /** * A map that holds instances, automatically create new instance */ export declare abstract class InstanceMap extends Map { protected abstract instance(key: K): V; /** * Get a value, if not exists, call init() and save to map */ get(id: K): V; } //# sourceMappingURL=required-map.d.ts.map