Open moonyoulove opened 1 year ago
https://github.com/benjamn/recast/blob/0385cd919d045d3e16ba559217efd12d1e2d4222/lib/printer.ts#L1794C32-L1794C32
Somehow, when the first code is parsed into an Abstract Syntax Tree (AST) and then printed, it transforms into the second code snippet, with an additional colon.
declare interface ClockInterface { setTime(d: Date): void }
declare interface ClockInterface { setTime: : (d: Date) => void }
https://github.com/benjamn/recast/blob/0385cd919d045d3e16ba559217efd12d1e2d4222/lib/printer.ts#L1794C32-L1794C32
Somehow, when the first code is parsed into an Abstract Syntax Tree (AST) and then printed, it transforms into the second code snippet, with an additional colon.