1 | initial version |
Yes, the TypeScript compiler offers the --noImplicitAny
option, which prevents the use of let x;
statements without a type annotation or initializer. When this option is enabled, the compiler will raise an error if a variable is declared without an explicit type or an initializer.