import { Moment } from 'moment';
import * as moment from 'moment/moment';
export class JobExecution {
public startTime: Moment;
constructor() {
this.stepExecutions = [];
}
public get startTimeFormatted(): string {
return DateTimeUtils.formatAsDateTime(this.startTime);
}
Despite the error message, it still means that...
Argument of type 'Moment' is not assignable to parameter of type 'Date'.
Property 'toDateString' is missing in type 'Moment'.
return DateTimeUtils.formatAsDateTime(this.startTime)
This particular section needs to be revised