From ea11dd6514c51d524b5cdded260a4632c5cf3c9c Mon Sep 17 00:00:00 2001 From: chaos Date: Tue, 16 Jan 2024 13:56:05 +0000 Subject: [PATCH] fix typing for Locale --- src/utils/formatDistance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/formatDistance.ts b/src/utils/formatDistance.ts index 26071ee..e00bc5c 100644 --- a/src/utils/formatDistance.ts +++ b/src/utils/formatDistance.ts @@ -1,5 +1,5 @@ import { de, enGB, fr, it, nl, ru } from "date-fns/locale"; -import { formatDistance as formatDistanceReal } from "date-fns"; +import { Locale, formatDistance as formatDistanceReal } from "date-fns"; function getLocale(language: string): Locale { return {