Skip to content

Commit

Permalink
Add missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesBHuff committed Jun 24, 2023
1 parent db57b22 commit 8be1bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/wcag-results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
rgbToLab(props.background).l / 100,
));
const calcScore = (contrast: number, aa: number, aaa: number) => {
const calcScore = (contrast: number, aa: number, aaa: number): string => {
switch(contrast) {
case aaa:
return 'AAA';
Expand Down

0 comments on commit 8be1bd8

Please sign in to comment.