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
Post a Comment