You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use these generics in a function to generate right typings for color name transformation. (using same name for a neutral color but using different colors in different themes with stiches)
Hi guys, thanks for the good work.
I noticed that every color has its own type generated while a generic type could be made.
example usage
ColorShades<"slate">
I use these generics in a function to generate right typings for color name transformation. (using same name for a neutral color but using different colors in different themes with stiches)
example usage
transformColor(slateDark, 'slate', 'neutral')
Not sure if all this helps anyway, but it could reduce the generated typing file sizes, at least.
The text was updated successfully, but these errors were encountered: