Skip to content

Error when generating class in global scope #56

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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