Working on an angular project and I created an interface file where I do two things:
Define an interface:
export interface tableHeader {
roundNumber: string;
eighteenHoleScore: string;
nineHoleScore: string;
courseRating: string;
slopeRating: string;
scoreDifferential: string;
}
Create a variable to hold an array of strings:
export const roundHeader = [
roundNumber: 'Round Number',
eighteenHoleScore: '18 Hole Score',
nineHoleScore: '9 Hole Score',
courseRating: 'Course Rating',
slopeRating: 'Slope Rating',
scoreDifferential: 'Score Differential'
]
I am getting the above 2304 error for each of my variables created in the roundHeader const. I looked through the site and didn't see anything to answer this and I found on google a lot of things relating to 'require' but in this circumstance it has nothing to do with require.
I am just trying to create an interface to define each variable type, then create static text in the same file so that I can export this static text to multiple pages of my app.
Any help is much appreciated
[with{and]with}