UNPKG

@freemework/common

Version:

Common library of the Freemework Project.

23 lines 776 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RuntimeReadonlySet = void 0; class RuntimeReadonlySet { _wrap; constructor(_wrap) { this._wrap = _wrap; } forEach(callbackfn, thisArg) { return this._wrap.forEach(callbackfn, thisArg); } has(value) { return this._wrap.has(value); } 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.RuntimeReadonlySet = RuntimeReadonlySet; Set.prototype.toReadonly = function () { return new RuntimeReadonlySet(this); }; //# sourceMappingURL=extension.set.js.map