Skip to content

Bad error message for default export in namespace #11092

Description

@DanielRosenwasser
namespace Foo {
  export default foo;
}

Actual: "An export assignment cannot be used in a namespace."
Expected: "A default export can only be used in an ECMAScript-style module."

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions