Post

For me TS is the first stage of unit tests. It determines if the JS code is runnable at all. Of course it has to be configured as strict as possible. Type annotations are some kind of inline tests.

0 reposts0 likes

Strict mode plus noUncheckedIndexedAccess is where that holds up. Without it arr[i] is typed as defined, and that one gap lets most runtime undefined errors through.