fix(types): argument of type 'Date' is not assignable to parameter of type 'never'#2542
Conversation
```
TS2345: Argument of type 'Date' is not assignable to parameter of type 'never'.
23 | for (let i = 0; i < 7; i++) {
24 | const day = dateLib.addDays(start, i);
> 25 | days.push(day);
| ^^^
26 | }
27 | return days;
28 | }
```
When starting a new CRA application, the compiler will throw the above error
Signed-off-by: cosminpsk <84313418+cosminpsk@users.noreply.github.com>
|
Good find! Which version of TypeScript are you using? |
Im using v4.3.2, this is where i found this issue, and then i updated to the v5.6.2 and the issue still persists. Can you please give me an estimate on when this will get merged and deployed? |
I'd like to replicate the issue first. I see where it comes from, but I don't understand why the type check passes here and not there. I tried |
Pull Request Template
Thanks for your PR! Make sure you have read the CONTRIBUTING guide.
What's Changed
When starting a new CRA application, the compiler will throw the above error
Type of Change
Tips for a good PR
Thanks
Additional Notes
Add any extra comments or questions here.