@freemework/common
Version:
Common library of the Freemework Project.
24 lines • 817 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RuntimeReadonlyMap = void 0;
class RuntimeReadonlyMap {
_wrap;
constructor(_wrap) {
this._wrap = _wrap;
}
forEach(callbackfn, thisArg) {
return this._wrap.forEach(callbackfn, thisArg);
}
get(key) { return this._wrap.get(key); }
has(key) { return this._wrap.has(key); }
get size() { return this._wrap.size; }
entries() { return this._wrap.entries(); }
keys() { return this._wrap.keys(); }
values() { return this._wrap.values(); }
[Symbol.iterator]() { return this._wrap[Symbol.iterator](); }
}
exports.RuntimeReadonlyMap = RuntimeReadonlyMap;
Map.prototype.toReadonly = function () {
return new RuntimeReadonlyMap(this);
};
//# sourceMappingURL=extension.map.js.map