4 ms·
I wonder if there was ever a discussion that definite assignment assertions should have a strict mode flag to disallow. They seem like something that can be abu
by 013a 9y ago
I wonder if there was ever a discussion that definite assignment assertions should have a strict mode flag to disallow. They seem like something that can be abused to escape the static type system.
- wwwigham 9y agoMuch like casts and nonnull assertions. The general consensus is that you can enable a tslint rule to categorically forbid them.
- smt88 9y agoI use tslint to disallow practices that TS has no compiler flag for.
- WorldMaker 9y agoYou don't even need to run tslint as a separate process these days. tslint supports running as a TS plugin, and will report its errors and warnings directly in the TS compiler output.