dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

Union Types breaking bundling

Open deegles opened this issue 7 years ago • 0 comments

Hi, it looks like union types are breaking the bundling process.

original:

export type MyType = "a" | "b" | "c";

export const AnotherType = {

    One: "a" as MyType,

    Two: "b" as MyType,

    Three: "c" as MyType

};

Output (from the top of the file, there is a blank line first):

    One: "a" | "b" | "c";

    Two: "a" | "b" | "c";

    Three: "a" | "b" | "c";
};

I'll try to dig in more and see if I can find the bug, but could someone take a look?

deegles avatar Apr 06 '17 23:04 deegles