I'm migrating my react app to typescript and am running into an issue with these blocks of code:
const weekNumber = [
...Array(CURRENT_WEEK_NUMBER)
.fill()
.map((_, i) => i + 1)
];
const weekLabels = [
...Array(17)
.fill()
.map((_, i) => i + 1),
'Playoffs: Wild Card',
'Playoffs: Divisional Round',
'Playoffs: Conference Championship',
'Playoffs: Super Bowl'
];
Expected 1-3 arguments, but got 0. An Argument for value was not supplied
I understand what this is telling me, but how do I refactor this code or have compiler ignore this?