Skip to content

Error when generating class in global scope #56

@MaddMugsy

Description

@MaddMugsy

Thanks for putting this tool together!

I noticed that when I set it to generate classes instead of interfaces and then set those classes to be global, it creates the class without an "export" expression. This results in the following compiler error and makes the classes more difficult to consume:

TS1046 (TS) Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.

Can you please add the word "export" before global classes?

Thanks!

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