Skip to content

armgit / ente

Public Imported from GitHub
0

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

Silence warning

Manav Rathid11e94c939bc
diff --git a/web/packages/build-config/tsconfig-typecheck.json b/web/packages/build-config/tsconfig-typecheck.json
index 22aa4ab67a..8d96d36003 100644
--- a/web/packages/build-config/tsconfig-typecheck.json
+++ b/web/packages/build-config/tsconfig-typecheck.json
@@ -17,12 +17,21 @@
* implies "ESNext.*"), "DOM.Iterable" (the ability to iterate over DOM
* elements) is not a subset of "DOM" and needs to be listed out
* explicitly.
- *
- * Note that we don't need to specify the `target` compilerOption, since
- * tsc isn't actually generating (emitting) the JavaScript.
*/
"lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
+ /**
+ * We don't potentially need to specify the `target` compilerOption,
+ * since tsc isn't actually generating (emitting) the JavaScript.
+ * However, without a target TypeScript becomes very conservative, and
+ * complains about things like
+ *
+ * > Type 'Float32Array' can only be iterated through when using the
+ * > '--downlevelIteration' flag or with a '--target' of 'es2015' or
+ * > higher.
+ */
+ "target": "ES2015",
+
/*
* The module system to assume the generated JavaScript will use.
*