Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Wrap

Manav Rathic5b6297ceaba
diff --git a/web/apps/auth/tsconfig.json b/web/apps/auth/tsconfig.json
index 11ae2368db..507ae19bdf 100644
--- a/web/apps/auth/tsconfig.json
+++ b/web/apps/auth/tsconfig.json
@@ -10,9 +10,11 @@
/* Set the base directory from which to resolve bare module names */
"baseUrl": "./src",
- /* TODO: Enable these */
+ /* This is hard to enforce in certain cases where we do a lot of array
+ indexing, e.g. image/ML ops, and TS doesn't currently have a way to
+ disable this for blocks of code. */
"noUncheckedIndexedAccess": false,
- /* MUI doesn't play great with exactOptionalPropertyTypes currently */
+ /* MUI doesn't play great with exactOptionalPropertyTypes currently. */
"exactOptionalPropertyTypes": false
}
}
diff --git a/web/packages/build-config/tsconfig-typecheck.json b/web/packages/build-config/tsconfig-typecheck.json
index 3db22b5d2c..9f3d5fcb4e 100644
--- a/web/packages/build-config/tsconfig-typecheck.json
+++ b/web/packages/build-config/tsconfig-typecheck.json
@@ -67,8 +67,10 @@
"noUnusedParameters": true,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
- /* e.g. makes array indexing returns undefined */
+ /* e.g. makes array indexing returns undefined. */
"noUncheckedIndexedAccess": true,
+ /* Treat optional (?) properties and properties where undefined is a
+ valid value separately */
"exactOptionalPropertyTypes": true
}
}