Added a section on how to use the custom theme type defined in global.d.ts
Corresponding Issue(s):
What Would You Like to Add/Fix?
Fixing a type in react-jss typescript instructions.
Adding instructions on how to use the defined theme. This is relevant because the custom theme interface is exported by react-jss as DefaultTheme, but it is declared by the user as Theme, leading to confusion on how to use the custom interface.
Todo
[ ] Verify that importing DefaultTheme works as shown in the proposed docs. I have tested on my end, and this works well (using next.js) but someone can verify perhaps?
Expectations on Changes
Accept the pull request? The things I changed /addedwere cause of confusion for me, so hopefully this helps someone else :)
Corresponding Issue(s):
What Would You Like to Add/Fix?
DefaultTheme
, but it is declared by the user asTheme
, leading to confusion on how to use the custom interface.Todo
DefaultTheme
works as shown in the proposed docs. I have tested on my end, and this works well (using next.js) but someone can verify perhaps?Expectations on Changes
Accept the pull request? The things I changed /addedwere cause of confusion for me, so hopefully this helps someone else :)
Changelog