Strips comments inside types
nickretallack opened this issue · 0 comments
nickretallack commented
If I run babel --plugins babel-plugin-flow-to-typescript
on this file:
type t = [
number, // comment 1
number, // comment 2
];
It prints this:
type t = [number, number];
The comments got stripped out.
If I run it on this:
type t = {
a: number, // comment 1
b: number, // comment 2
};
I get this:
type t = {
a: number;
// comment 1
b: number;
};
One comment was stripped out and the other was moved.