Open ceremonious opened 1 year ago
yeah if i have type definitions in my tsx file it throws with the "missing semicolon" error
@ceremonious try adding --parser=flow to the command at the command line, i think it is working for me
parser=flow to the command at the command line, i think it is working for me
the parsing is successful, but output doesn't match.
For example, I'm seeing
export declare const two: number;
converted to
export declare var two: number;
This changes expectations around mutability
Is it possible to use jscodeshift to modify
.d.ts
files?I'm trying to parse a file that looks like this:
If I use Babel as a parser, I get this error:
SyntaxError: Missing semicolon. (2:7)
If I use Typescript, I get this error:
SyntaxError: Missing initializer in const declaration. (13:41)
Is there a different parser or parser config I can use?