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

why remove export statement #134

Closed lovetingyuan closed 1 year ago

lovetingyuan commented 1 year ago

input: a.ts

export type GetA = typeof getA

export const getA = () => {
  return false
}

after run npx putout --fix a.ts output:

const getA = () => false;
export type GetA = typeof getA;

function getA is a exported value, it is used by other modules, why remove export?

coderaiser commented 1 year ago

Fixed with 39a973e 🎉, landed in v29.0.7 please re-install 🐊Putout, and check again, is it works for you?

lovetingyuan commented 1 year ago

yes, the problem solved, I will close it, thank you!