var Class = (function () { var private var Class = function () {} Class.prototype.someMethod = function() { private ... }; ... return Class; })();