From 42dabea81f224c3f1f3aca3b6ae6a3fd31ca956c Mon Sep 17 00:00:00 2001 From: Lucas Henrique Date: Mon, 5 Jul 2021 12:35:37 -0300 Subject: [PATCH] Move Day.js plugin types import to global typings (#2954) --- js/@types/global/index.d.ts | 1 + js/src/common/utils/humanTime.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/js/@types/global/index.d.ts b/js/@types/global/index.d.ts index 3981ce685..3fa15be23 100644 --- a/js/@types/global/index.d.ts +++ b/js/@types/global/index.d.ts @@ -3,6 +3,7 @@ import Mithril from 'mithril'; // Other third-party libs import * as _dayjs from 'dayjs'; +import 'dayjs/plugin/relativeTime'; import * as _$ from 'jquery'; // Globals from flarum/core diff --git a/js/src/common/utils/humanTime.ts b/js/src/common/utils/humanTime.ts index 6586658ba..330323ea3 100644 --- a/js/src/common/utils/humanTime.ts +++ b/js/src/common/utils/humanTime.ts @@ -1,5 +1,4 @@ import dayjs from 'dayjs'; -import 'dayjs/plugin/relativeTime'; /** * The `humanTime` utility converts a date to a localized, human-readable time-