Hello! I need some help trying to figure out what I am missing here to make this package work.
What I've done:
I have installed both moment and this package
"moment": "^2.24.0",
"moment-duration-format": "^2.3.2",
My Code:
import moment from 'moment';
import momentDurationFormatSetup from 'moment-duration-format';
function durationFormatter(minutes): string {
momentDurationFormatSetup(moment);
return moment.duration(minutes, "minutes").format();
}
Getting this error:
Property 'format' does not exist on type 'Duration'
Hello! I need some help trying to figure out what I am missing here to make this package work.
What I've done: I have installed both moment and this package "moment": "^2.24.0", "moment-duration-format": "^2.3.2",
My Code:
Getting this error:
Property 'format' does not exist on type 'Duration'