color.js
color.js copied to clipboard
[types] Fix type errors in codebase
Closes #572
Fixes type errors originating from the codebase itself.
In some instances, the logic was changed where it seemed like the type error reflected an actual problem. For example, adding color = Color.get(color)
where the signature made it seem as though a function could take ColorTypes
, but actually couldn't.