|
|
|
|
|
by cygned
1681 days 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. |
|
Setting the type of unknown data to `unknown` forces you to validate it.