projects
projects copied to clipboard
🐛 Bug: [02-clown-availability] <Missing type>
trafficstars
Bug Report Checklist
- [X] I have tried restarting my IDE and the issue persists.
- [X] I have pulled the latest
mainbranch of the repository. - [X] I have searched for related issues and found none that matched my issue.
- [X] This is the appropriate issue form for the bug I would like to report.
Expected
I expected the L11 to be let lastClown: string;.
https://github.com/LearningTypeScript/projects/blob/4bf708c250f1ff32f2ba2a6f4a6e38d3ca8e6298/projects/the-type-system/system-of-a-clown/02-clown-availability/solution.ts#L11C15-L11C15
Actual
let lastClown; => type any
anything can be assign to it which would eventually blow when .toUpperCase() is called.
Impacted Project
02-clown-availability
.../projects/the-type-system/system-of-a-clown/02-clown-availability
Additional Info
No response
Heh, I think I'd left this out because evolving anys aren't necessarily issues. But if you want to add a : string I think that it makes sense. Thanks for the report!