Open bennycode opened 4 months ago
I am using moment-duration-format v2.3.2 along with @types/moment-duration-format v2.2.6.
I have to initialize it like this:
import moment from "moment"; import momentDurationFormatSetup from "moment-duration-format"; momentDurationFormatSetup(moment as any);
Preferrably, I wouldn't like to use the as any assertion but if I use it without I am getting this error:
as any
same error here
any workaround?
I haven't found any workaround but maybe @jsmreese has an idea?
I am using moment-duration-format v2.3.2 along with @types/moment-duration-format v2.2.6.
I have to initialize it like this:
Preferrably, I wouldn't like to use the
as any
assertion but if I use it without I am getting this error: