Skip to content

Allow local interface definition #2148

Closed
@NN---

Description

@NN---

It is impossible to define local interface in the function, but you can do it in the module.

module A {
  interface B{} // OK 
}

(function X() {
  interface Y { } // Error
})();

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions