I have been attempting to define a new constant in the following manner, but I encountered an error
export const fakeExpertOperationalEdited: ExpertOperational = {
comment: 'comment',
useSlots: true,
workingDay: new ExpertWorkingDay[] = [
{
weekDay: 'MONDAY',
operationalAM: {
fixed: false,
startTime: '11:00',
endTime: '12:00'
},
operationalPM: {
fixed: false,
startTime: '11:00',
endTime: '12:00'
}
}
],
workSpeedSurvey: '10'
};
export class ExpertWorkingDay {
constructor(
public weekDay: WeekDays,
public operationalAM: ExpertWorkingHours,
public operationalPM: ExpertWorkingHours
) { }
}
This is the error message I am receiving
The left-hand side of an assignment expression must be a variable or a property access
Does anyone have any insights into where I might be going wrong?