0

I wonder if there is an equivalent for Typescript's namespace to use nested namespaces in javascript ?

example :

export {Classname as My.Name.Classname}

// or 
export namespace My.Name {  
     class Classname {
     }
}
nAviD
  • 2,784
  • 1
  • 33
  • 54
  • 1
    [Copy that into the TypeScript Playground](https://www.typescriptlang.org/play?#code/KYDwDg9gTgLgBAOwIYFtgGcxIMbDgWQE8A6AOVTwG844AoGh7AGyXXTgGEW3k05L6DOAF9awoA), observe the resulting JavaScript on the right... – Heretic Monkey Dec 10 '20 at 14:55
  • I didn't say that's an actual working code. I want its equivalent – nAviD Dec 10 '20 at 14:59
  • 1
    *I* didn't say that's an actual working code. The JavaScript produced by the TypeScript compiler is, by definition, its exact equivalent. – Heretic Monkey Dec 10 '20 at 15:01

0 Answers0