file1.ts
namespace test { export class AA {} } file2.ts
/// <reference path="file1.ts" /> import * as express from "express"; // without this line it works namespace test { export class BB { constructor(a:AA){ var r = express.Router(); ... } } } If I comment the import line above, the code compiles but express import is missing. If I keep the import, I get
enter code hereerror TS2304: Cannot find name 'AA' Any idea how to fix this?