Consider this module:
export module Example{
let customer : any;
export function myExample(customer: string) {
// How to reference the module level customer object here?
// Is there a standard to make these module level variables Pascal Case to prevent this overlap?
}
}
The customer
in the myExample
function is a string. How do I reference the module level customer
?
If it was a class, I could use this.customer
but this
doesn't work in a module, and Example.customer
doesn't work either, unless customer is exported...