mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
typing cleanup
This commit is contained in:
@@ -34,11 +34,11 @@ const defaultMonoFonts = [
|
||||
'monospace',
|
||||
];
|
||||
|
||||
export function isLight(color: string) {
|
||||
export function isLight(color: string): boolean {
|
||||
return readableColorIsBlack(color);
|
||||
}
|
||||
|
||||
export function isDark(color: string) {
|
||||
export function isDark(color: string): boolean {
|
||||
return !readableColorIsBlack(color);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user