From efbfb7719c38b2a5fd843006021a924037ffcec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20R=C3=A5dberg?= Date: Sat, 16 Mar 2024 10:40:18 +0100 Subject: [PATCH] tsc --- src/Utils/checkContrast.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utils/checkContrast.ts b/src/Utils/checkContrast.ts index 4a39c4f..549b0ad 100644 --- a/src/Utils/checkContrast.ts +++ b/src/Utils/checkContrast.ts @@ -70,8 +70,8 @@ const bc = 0.0722; // low-gamma adjust coefficient const lowc = 1 / 12.92; -function adjustGamma(_) { - return Math.pow((_ + 0.055) / 1.055, 2.4); +function adjustGamma(input: number) { + return Math.pow((input + 0.055) / 1.055, 2.4); } export const relativeLuminance = (rgb: RGBA) => {