flowts icon indicating copy to clipboard operation
flowts copied to clipboard

Should strip this annotation

Open nickretallack opened this issue 6 years ago • 0 comments

Output:

class A {
  a: Function;
  a() {}
}

Output:

class A {
  a: Function;

  a() {}
}

It should strip the a: Function; line. If you compile the code with flow, that line gets stripped out of the output, but if you compile it with TypeScript, it acts as a duplicate declaration which overrides the original, resulting in code where a is undefined.

nickretallack avatar Apr 08 '20 19:04 nickretallack