I have an exported module in one file(upload.ts) in Typescript that I\'m not able to import into another file(application.ts) without an error. Also, I\'m not able to import Exp
You need to:
express.d.ts
and node.d.ts
into your project directory, near your application filesExample:
/// <reference path="libs/express.d.ts" />
/// <reference path="libs/node.d.ts" />
import http = require("http");
import express = require("express");
import upload = require("Upload");
var upload = new upload.Upload();
var app = express();
Upload
module can be referenced in similar way.
BTW, your code looks more like javascript then typescript