Skip to content

Wide change of uses of any to unknown #15

@ForwardFeed

Description

@ForwardFeed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions