I recently asked a question but couldn't really understand the answer. Here's what I have been able to understand. Can someone please verify if this is the correct way to go about doing something similar to C# where I have namespaces? Note that below are three files and they all have references to each other but these are not show here:
/Admin/dialog/start.ts
module Admin.dialog {
export function x() { };
Admin.grid.y(); // executes the function inside of file2.ts
}
/Admin/dialog/file1.ts
module Admin.dialog {
export function y() { };
}
/Admin/grid/file2.ts
module Admin.grid {
export function y() { };
}