Typing the theme function argument
#875
kaisermann
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The current type for the
themeexported function was defined in #169 asCan a proper type be added to this function so we can get some autocomplete suggestions and type-checking for typo prevention?
I know we can override the type with a
declare module 'twin.macro'in a.d.tsfile, but I'm not sure if we could have the parsed config available as a type.I also considered the Tailwind IntelliSense VSCode extension but couldn't find anything specific. It does seem to check for
themewritten inside.cssfiles by default, though.Beta Was this translation helpful? Give feedback.
All reactions