shlogg · Early preview
Cyrille Tuzi @cyrilletuzi

Overcoming TypeScript's Typing Limitations With Strong Static Typing

TypeScript doesn't guarantee typing like Java, C# or Rust due to default settings: only partial enforcement, no nullability handling & retained dynamic typing. Adequate config & good practices can solve these issues.

The problem

Over the last decade, as a JavaScript expert, I helped companies of all kinds and sizes. Over time, I detected a series of some recurring major problems in nearly all projects.
One of them is a lack of typing, resulting in a lack of reliability and an exponential decline in productivity.
Yet, all these projects were coded in TypeScript. Should not it guarantee typing like in Java, C# or Rust?
Short answer: no, because by default TypeScript:

only partially enforces typing
does not handle nullability
retains some JavaScript's dynamic typing

These problems can be solved with adequa...