rotaready / moment-range

Fancy date ranges for Moment.js
The Unlicense
1.69k stars 202 forks source link

Added overload for default export to extendMoment #291

Open nathanlepori opened 3 years ago

nathanlepori commented 3 years ago

Allows passing the moment constructor function to extendMoment imported like follows: import moment from 'moment'; as an alternative to import * as moment from 'moment'; (which doesn't allow to construct a moment instance). Changing allowSyntheticDefaultImports to true is actually reccomended by the Moment docs found here.