Skip to content

Commit

Permalink
chore(getLuminance): Fix Flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
James Quinlan authored and bhough committed Aug 31, 2017
1 parent 838c570 commit 9edff45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/color/getLuminance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9edff45

Please sign in to comment.