From 9edff4569b1460b5a6ffe9b35ed7e68eff7f7481 Mon Sep 17 00:00:00 2001 From: James Quinlan Date: Thu, 4 May 2017 11:00:25 -0400 Subject: [PATCH] chore(getLuminance): Fix Flow errors --- src/color/getLuminance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/color/getLuminance.js b/src/color/getLuminance.js index 10e75d08..0349baca 100644 --- a/src/color/getLuminance.js +++ b/src/color/getLuminance.js @@ -25,7 +25,7 @@ import curry from '../internalHelpers/_curry' * */ function getLuminance(color: string): number { - const rgbColor = parseToRgb(color) + const rgbColor: { [string]: number } = parseToRgb(color) const [r, g, b] = Object.keys(rgbColor).map(key => { const channel = rgbColor[key] / 255 return channel <= 0.03928