borisyankov/DefinitelyTyped — pull request #1704 by znation (2014-02-17 22:29:35+00:00)
Title: Add module declaration to bootstrap.d.ts

This change allows the use of AMD modules in TypeScript that have module dependencies on require.js. Minimal repro/example:

```
import bootstrap = require("bootstrap");
export module MyModule {
// dummy reference to bootstrap so it ends up in the generated require call
bootstrap;
}
```

This compiles to (with `tsc --module amd test.ts bootstrap.d.ts`):
```
define(["require", "exports", "bootstrap"], function(require, exports, bootstrap) {
(function (MyModule) {
bootstrap;
})(exports.MyModule || (exports.MyModule = {}));
var MyModule = exports.MyModule;
});
```