Closed P4sca1 closed 4 years ago
Merging #47 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #47 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 13 13
Branches 2 2
=====================================
Hits 13 13
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update eed4398...eef27e8. Read the comment docs.
@kevinmarrec As you made the initial types, could you take a look at this?
$moment
is injected using nuxtinject
method and is therefore also available invuex
. This adds types to thevuex
store.Also no longer limit the type to
(input?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment
but usetypeof moment
. This makes it possible to do something likethis.$moment.duration()
.The README is updated to contain info about how to use this module with typescript. I was wondering why
this.$moment
was untyped and found out you have to add@nuxtjs/moment
to thetypes
array in yourtsconfig.json
. Thought it would make sense to include this in the README.