mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Move Day.js plugin types import to global typings (#2954)
This commit is contained in:
1
framework/core/js/@types/global/index.d.ts
vendored
1
framework/core/js/@types/global/index.d.ts
vendored
@@ -3,6 +3,7 @@ import Mithril from 'mithril';
|
|||||||
|
|
||||||
// Other third-party libs
|
// Other third-party libs
|
||||||
import * as _dayjs from 'dayjs';
|
import * as _dayjs from 'dayjs';
|
||||||
|
import 'dayjs/plugin/relativeTime';
|
||||||
import * as _$ from 'jquery';
|
import * as _$ from 'jquery';
|
||||||
|
|
||||||
// Globals from flarum/core
|
// Globals from flarum/core
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import 'dayjs/plugin/relativeTime';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `humanTime` utility converts a date to a localized, human-readable time-
|
* The `humanTime` utility converts a date to a localized, human-readable time-
|
||||||
|
Reference in New Issue
Block a user