Skip to content

Exported interface is transpiled to empty module #15950

@micnic

Description

@micnic

TypeScript Version: 2.3.2

Code

export interface A {
    a: boolean,
    b: number,
    c: string
}

Expected behavior:
It is not expected to be transpiled to JS code in any way if it is the only thing that is exported

Actual behavior:
It is transpiled to an empty module, like this for example:

define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    ;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions