Skip to content

Replacing "module" with "namespace" in the generated TypeScript files. #286

@jayhayman-hdd

Description

@jayhayman-hdd

What would be the best practice to change the outputted TypeScript file for a class or interface to "not" use module and instead use namespace. E.g. the export content looks like this:

namespace MyName1.MyName2 {
    // properties are written here
}

In a recent upgrade to Visual Studio (17.12.x), I now get warnings that modules should be namespaces

(TS) A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions