I am trying to use durandal and I need to getModuleId by passing the current module. My problem is that since I am using TypeScript, the lining object that is returned from the AMD module does not seem to be accessible using the Typescript code:
export function checkModule(){ var a = system.getModuleId(??); }
the compiled TS will be converted to this:
function checkModule(){ var a = system.getModule(??); } exports.checkModule = checkModule;
instead ?? I need to pass the exports object, which is defined in the compiled TS. Is there a way to do this, or is there a very easy way? thanks
source share