Ass soon as you import
anything in typescript and compile with amd
you get a define
with require
and exports
.
exports
is requireJS handle for anything you want to export from this module. e.g.
export var foo = 123;
will generate
exports.foo = 123;
Which is utilized by requirejs import on the other end.