|
|
|
|
|
by kvathupo
1622 days ago
|
|
I agree that TS eases the transition from JS, but I'd qualify your statement by saying it's not the toolchain that's a source of headache. Ideally, one should compile TS with `--strict`, otherwise there's little difference with JS. With this in mind, it's quick and easy to switch to TS tooling. Afterwards, one can incrementally adopt stricter typing, culminating in adding `--strict` to your `tsconfig`. In reality, since `--strict` is false by default, I'm concerned people erroneously assume that their JS code is type-safe after the first step, when it really isn't. In other words, it's no different than JS, except in name only! |
|