UNPKG

@regionorebrolan/extensions

Version:
29 lines 1.09 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var Utility_1 = __importDefault(require("../Utility")); var Wrapper = /** @class */ (function () { // Constructors function Wrapper(wrappedInstance, parameterName) { if (Utility_1.default.isNullOrUndefined(wrappedInstance)) throw new Error("The " + (parameterName || "wrapped instance") + " can not be null or undefined."); this._wrappedInstance = wrappedInstance; } Object.defineProperty(Wrapper.prototype, "wrappedInstance", { // Properties get: function () { return this._wrappedInstance; }, enumerable: false, configurable: true }); // Methods Wrapper.prototype.toString = function () { return this.wrappedInstance.toString(); }; return Wrapper; }()); exports.default = Wrapper; //# sourceMappingURL=Wrapper.js.map