(no title)
cygned
|
4 years ago
The thing is, though, that Typescript is not solving runtime type checks. Typescript is declarative, it does not check at runtime and if you have any code interacting with third-party data sources and you do not check there, things will explode down the line.
zkldi|4 years ago
Setting the type of unknown data to `unknown` forces you to validate it.
nayuki|4 years ago
crate_barre|4 years ago