Skip to content

TypeScript support ? :-) #413

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

Closed
gekkedev opened this issue Sep 21, 2021 · 1 comment
Closed

TypeScript support ? :-) #413

gekkedev opened this issue Sep 21, 2021 · 1 comment

Comments

@gekkedev
Copy link

After renaming my Tailwind config from tailwind.config.js to tailwind.config.ts, the extension doesn't work that well anymore even though the file is present under a slightly altered name (throwsNo config file found). However, the IntelliSense functionality can still be triggered though, but requires you to explicitly press CTRL+space.

'**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.{js,cjs}'

My suggestion is to add .ts as a file ending here (are there others we might add as well?) because any valid JS is valid TS and possibly there will be better typing support in the future of TWCSS.
If you would accept a PR of this kind, let me know and I'll gladly create one which also updates the documentation.

@bradlc
Copy link
Contributor

bradlc commented Sep 24, 2021

Duplicate of #348

@bradlc bradlc marked this as a duplicate of #348 Sep 24, 2021
@bradlc bradlc closed this as completed Sep 24, 2021
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