Skip to content Skip to sidebar Skip to footer

Create Typings For Nested Namespaces In Typescript

I'm trying to create typings definitions for already existed library, and having issues describe its structure properly. The problem is nested namespaces. In JavaScript full name o

Solution 1:

declare namespace NameSpace1.NameSpace2.NameSpace3 {
  function MethodName(): void;
}

There are literally thousands of examples of how to write definition files at https://github.com/DefinitelyTyped/DefinitelyTyped ; I'd recommend looking for something similar to what you have next time you're stuck.


Post a Comment for "Create Typings For Nested Namespaces In Typescript"