From 240640dc4955835116562e688f738dc2fe6e25f5 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 26 Feb 2022 17:53:20 -0800 Subject: [PATCH] Fix typescript bs in timeAgo method --- utils/timeAgo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/timeAgo.tsx b/utils/timeAgo.tsx index 3c510a71..424b92b0 100644 --- a/utils/timeAgo.tsx +++ b/utils/timeAgo.tsx @@ -1,5 +1,5 @@ -const DIVISIONS = [ +const DIVISIONS: { amount: number, name: Intl.RelativeTimeFormatUnit }[] = [ { amount: 60, name: 'seconds' }, { amount: 60, name: 'minutes' }, { amount: 24, name: 'hours' },