Skip to content

Option to not use TypeScript Namespaces #1706

Open
@pattrickrice

Description

@pattrickrice

Describe the solution you'd like
It seems like enums get generated in namespaces. eg.

export namespace Pets {
    export enum pet_type {
       Cat = "Cat",
       Dog = "Dog",
    }
}

Namespaces are unnecessary at this point; in addition the TypeScript team has gone through efforts for performance improvements in their own code base by removing namespaces: microsoft/TypeScript#51387.

It would be nice to have an option to not generate namespaces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions