tailwindcss-debug-screens
tailwindcss-debug-screens copied to clipboard
[Feature Request] Add type declaration file
Getting the warning, was wondering if you'd consider adding the type declaration file.
Good idea :) I guess it would be more or less the same like the type declaration file in the tailwindcss/typography plugin? Would be more than happy to merge a PR.
I'll send a PR soon!
As I was browsing some documentation, I was curious why you specify configuration to be defined in theme
instead of in an options argument like Typography:
https://tailwindcss.com/docs/typography-plugin#changing-the-default-class-name
Seems like the latter makes more sense, since there is locality between the plugin and the configuration
I built this plugin back in the Tailwind CSS 1.x days and that happened to be the recommended way. I see that they now recommend another way indeed.
I guess it would be easier to add the types once the new recommended options are implemented?
Yeah, probably? I have a file that is sufficient to stop the warning in my original screenshot but I can add another call with an options object and it doesn't error. Don't know if that can be prevented.