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: |
Beta Was this translation helpful? Give feedback.
-
There will be! Check out: DefinitelyTyped/DefinitelyTyped#50921 It will be downloadable by doing npm i @types/tailwindcss once this is merged! |
Beta Was this translation helpful? Give feedback.
-
Is there any official update for TypeScript definitions for Tailwind plugins? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@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:
|
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions