Skip to content

Commit 7746b5d

Browse files
committed
make type checking stricter by enabling noImplicitOverride and noUncheckedIndexedAccess tsconfig options.
BREAKING: This may cause some type errors and code will need to be adjusted. In many cases the fixes are simple: prepend "override" to class members affected by noImplicitOverride, or add a non-null assertion (`!`) on expressions affected by noUncheckedIndexedAccess if not a better conditional check.
1 parent 801c4c9 commit 7746b5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

config/ts.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"noUnusedLocals": true,
3939
"noUnusedParameters": true,
4040
"forceConsistentCasingInFileNames": true,
41-
// "noImplicitOverride": true, // TODO, many type errors will result (f.e. in the lume package)
41+
"noImplicitOverride": true,
42+
"noUncheckedIndexedAccess": true,
4243

4344
// Language feature options
4445
"useDefineForClassFields": true,

0 commit comments

Comments
 (0)