export class Response {
/* bla-bla */
}
import Response = require('./lib/Response');
var response = new Response.Response();
import Response = require('./lib/Response');
var response = new Response();
function newClass (settings) {
return new Class(settings);
}
function Class(settings){
this.settings = settings;
}
Class.prototype.someMethod = function () {
var _this = this;
console.log(_this.settings);
};
module.exports = newClass;
var classInstance = require('./classFile.js')({'some':'settings'});
classInstance.someMethod();