You perhaps know, but I believe one should prefer the "unknown" type in TypeScript in such scenarios. Of course, then you need to check what its type actually is to make use of it, but this time TS checks that you do.
Btw, the equivalent in Python (and MyPy/pyright) is object.
Btw, the equivalent in Python (and MyPy/pyright) is object.