While transitioning my react app to typescript, I've encountered an issue with the following code blocks:
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'
];
The error message states "Expected 1-3 arguments, but got 0. An Argument for value was not supplied"
I comprehend the issue being raised here, but how can I go about refactoring this code or instructing the compiler to overlook it?