Vì vậy, tôi nghĩ rằng tôi đã tìm thấy một giải pháp. Chỉ cần đặt từ khóa 'mô-đun' trong dấu ngoặc đơn trong tệp .ts của bạn:
declare var module: any;
(module).exports = MyClass;
Tệp javascript được tạo sẽ giống hệt nhau:
(module).exports = MyClass;
Lưu ý, tốt hơn là tự khai báo mô-đun var, hãy tải xuống tệp định nghĩa node.d.ts và gắn nó vào cùng thư mục với tệp typecript của bạn. Đây là mẫu hoàn chỉnh của tệp định tuyến express node.js giả sử node.d.ts nằm trong cùng một thư mục:
var SheetController = function () {
    this.view = function (req, res) {
        res.render('view-sheet');
    };
};
(module).exports = SheetController;
Sau đó, tôi có thể tạo mới một SheetController và (sử dụng express) gán phương thức xem:
var sheetController = new SheetController();
app.get('/sheet/view', sheetController.view);
Tôi cho rằng có thể thoát bất kỳ từ khóa nào bằng cách sử dụng mẫu này:
declare var reservedkeyword: any;
(reservedkeyword).anything = something;