Replies: 5 comments 13 replies
|
[Disclaimer: I made this] It needs a lot of rough edges to be smoothed out but you can try importing from Some plugins using it now: |
|
There will be! Check out: DefinitelyTyped/DefinitelyTyped#50921 It will be downloadable by doing npm i @types/tailwindcss once this is merged! |
|
Is there any official update for TypeScript definitions for Tailwind plugins? |
|
Hello there! I think this type is already included. This is how I made the It seems a bit "hacky" to me because the type I'm using |
|
@jofjro Thank you for sharing! I believe there's a more effective approach to utilize this in tailwindcss@3.3.0 and above. You can simply import PluginCreator from "tailwindcss/types/config" as demonstrated below: |
Uh oh!
There was an error while loading. Please reload this page.
I am just wondering if there is a plan to include a typescript definition for the definition of a TailwindCSS plugin function? It would be nice to include so that people creating stand alone or one-off plugins could have that assistance in their code editor.
All reactions