Closed theimo1221 closed 4 weeks ago
hehe, same as #317 just different ... soooo @jens-maus any or unknown your decision gg
Sorry, I am not an TS expert.. So what are the implications of any vs. unknown here?
Hello Jens,
'Any' turns off type checking completely, thus increasing risks for bugs at usages, while 'unknown' enforces the developer to implement his own type checks (typeof) or cast's (as ...).
So in this case unknown is more stable until we add a specific definition/interface for those objects.
This might be an interesting article about the topic with some examples: https://rahuulmiishra.medium.com/typescripts-any-vs-unknown-vs-never-when-and-how-to-use-them-35d81ea57c01
hehe, same as #317 just different ... soooo @jens-maus any or unknown your decision gg