1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

typing cleanup

This commit is contained in:
checktheroads
2021-01-10 01:15:13 -07:00
parent 4137286ca4
commit 090626f952
10 changed files with 16 additions and 17 deletions

View File

@@ -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);
}