Beforehand
This is not that important and I will be volunteer to do it.
However not changing everything every 2 morning could be a quality of life so this definitively can be postponed.
Context
Uses of any in pure types have no side effect whatsoever, it is perfectly safe to use, and its impact on performance is not documented so it is likely that it doesn't have one
So why removing any in favor of unknown
In case someone ever use this repository to learn typescript, they could infer the wrong idea that any can be safely used.
unknown does the same job without making typescript seniors angry.
Other things to change in the same vein
replacing all generic type constraints akin to [ ] to readonly [ ] That's mostly me who caused some but I still put it here as a sticky note.
Beforehand
This is not that important and I will be volunteer to do it.
However not changing everything every 2 morning could be a quality of life so this definitively can be postponed.
Context
Uses of
anyin pure types have no side effect whatsoever, it is perfectly safe to use, and its impact on performance is not documented so it is likely that it doesn't have oneSo why removing
anyin favor ofunknownIn case someone ever use this repository to learn typescript, they could infer the wrong idea that
anycan be safely used.unknowndoes the same job without making typescript seniors angry.Other things to change in the same vein
replacing all generic type constraints akin to
[ ]toreadonly [ ]That's mostly me who caused some but I still put it here as a sticky note.