Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Non existing interfaces variable exported --module:system tsc:1.6.0-beta #4745

Copy link
Copy link
@majo44

Description

@majo44
Issue body actions

Input:

// test.ts
interface Xx {} 
export {Xx}

command:

> tsc --module system test.ts

output:

// test.js
System.register([], function(exports_1) {
    return {
        setters:[],
        execute: function() {
            exports_1("Xx", Xx); // Error: Can't find variable: Xx
        }
    }
});

In real use case I have to export interface because:
TS4073: Parameter 'callback' of public method from exported class has or is using private name 'ICallback'

This bug not occurs in 1.5.3, variable is not exported. So probably this is regression bug.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue

    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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.