Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Color): improve
Color
lib (types, etc.) (#352)
- Fixup types and doc-comment descriptions. The `Color` module and `Color` instances are now well-typed providing LSP completion and type-hinting. The `Color` type has been renamed and namspaced under `GhTheme.*`. Types provided by the `Color` module are namespaced under `GhTheme.Color.*`. The reason for the namespacing is because the Lua LSP considers all defined types to be global. - Remove duplicated code in `__call` and `new()`. - Throw an error if the argument given to the `Color` constructor is of invalid type. Previously there was no error and it just returned `nil`.
- Loading branch information