durandal - Is there a way to access "exports" object in TypeScript modules? -


i trying use durandal , need getmoduleid passing current module. problem using typescript, underlaying object returned amd module seems not accessible typescript code:

export function checkmodule(){        var = system.getmoduleid(??); } 

the compiled ts converted this:

function checkmodule(){      var = system.getmodule(??); } exports.checkmodule = checkmodule; 

instead of ?? need pass exports object defined in compiled ts. there anyway or there simple way? thanks

the following use. saying "there exports variable out there" ... , there :)

declare var exports;  var thismodule = exports;  

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -