Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript type annotations being removed #338

Open
Spoertm opened this issue Jan 2, 2025 · 1 comment
Open

Typescript type annotations being removed #338

Spoertm opened this issue Jan 2, 2025 · 1 comment

Comments

@Spoertm
Copy link

Spoertm commented Jan 2, 2025

What version of prettier-plugin-tailwindcss are you using?

v0.6.9

What version of Tailwind CSS are you using?

v3.4.17

What version of Node.js are you using?

v21.5.0

What package manager are you using?

npm

What operating system are you using?

Windows

Describe your issue

const handleFileUpload = async (e: React.ChangeEvent<HTMLInputElement>) => {
  // ...
};

The type annotations in Typescript are being removed. So the above code snippet is converted to:

const handleFileUpload = async (e: React.ChangeEvent) => {
  // ...
};
@yogiprsetya
Copy link

I have the same problem, I tried with other version but still get same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants