require.d.ts
This is a typescript definitions file for require.js.
Usage
Compile *.ts files as AMD modules:
tsc --module AMD main.ts
export classes so they can be accessed from an import:
// File main.ts { ... }
Reference require.js statically in your html page (normally how you would do this with vanilla javascript)
where main.ts is the source file containing imports/configuration/require initialization. where type is javascript since require.js is javascript. where src is the reference to require.js.
Sample contents of config.ts: The sample config will load all required shims and AMD modules and then kick off main.ts once everything is loaded.
//file config.tsrequire; // load AMD module main.ts (compiled to main.js)// and include shims $, _, Backbone ;