@nuxtjs/date-fns
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [1.4.1](https://github.com/nuxt-community/date-fns-module/compare/v1.4.0...v1.4.1) (2020-10-21) | ||
| ### Bug Fixes | ||
| * add formatDuration typescript support ([#43](https://github.com/nuxt-community/date-fns-module/issues/43)) ([806d37e](https://github.com/nuxt-community/date-fns-module/commit/806d37e7bc7c48b5dc5ce4280e45c157459a17cf)) | ||
| ## [1.4.0](https://github.com/nuxt-community/date-fns-module/compare/v1.3.1...v1.4.0) (2020-09-08) | ||
@@ -7,0 +14,0 @@ |
+1
-1
| { | ||
| "name": "@nuxtjs/date-fns", | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "description": "Modern JavaScript date utility library - date-fns for Nuxt.js", | ||
@@ -5,0 +5,0 @@ "repository": "nuxt-community/date-fns-module", |
+11
-1
@@ -1,2 +0,2 @@ | ||
| import { Interval, Locale } from 'date-fns' | ||
| import { Interval, Locale, Duration } from 'date-fns' | ||
@@ -236,2 +236,12 @@ interface dateFns { | ||
| formatDuration( | ||
| duration: Duration, | ||
| options?: { | ||
| format?: string[] | ||
| zero?: boolean | ||
| delimiter?: string | ||
| locale?: Locale | ||
| } | ||
| ): string | ||
| formatISO( | ||
@@ -238,0 +248,0 @@ date: Date | number, |
28125
1.87%595
1.54%