coderaiser / putout

🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter, drop-in ESLint superpower replacement 💪 with built-in support for js, jsx, typescript, flow, markdown, yaml and json. Write declarative codemods in a simplest possible way 😏
https://putout.cloudcmd.io/
MIT License
705 stars 40 forks source link

TypeScript type being removed in output when using object destructuring #183

Closed incleaf closed 1 year ago

incleaf commented 1 year ago
image

Here's a snippet of reproducible codes

coderaiser commented 1 year ago

Thanks! Just landed support of typeAnnotations to ObjectPattern in @putout/printer v5.2.0 🎉 .

Please re-install 🐊Putout, is it works for you?

incleaf commented 1 year ago

Works like a charm! Thank you for such a quick fix