How to combine import all with others?

Be careful because:

import * as moment from 'moment'

is different from

import moment from 'moment'

Because the second imports only the namespace moment and everything within, but the first imports everything including function moment() that is out of the namespace.
Correct import can be:

import * as moment from 'moment';
type Moment = moment.Moment;

Leave a Comment