Skip to content

armgit / ente

Public Imported from GitHub
0

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

For now

Manav Rathi935456bd16a4
diff --git a/web/packages/build-config/tsconfig-next.json b/web/packages/build-config/tsconfig-next.json
index a8257b0bba..af9dafc21a 100644
--- a/web/packages/build-config/tsconfig-next.json
+++ b/web/packages/build-config/tsconfig-next.json
@@ -2,7 +2,8 @@
/* A base TSConfig for typechecking our Next.js apps and packages. */
"extends": "@/build-config/tsconfig-typecheck.json",
"compilerOptions": {
- /* Next.js insists on adding these. Sigh. */
+ /* Next.js forcefully insists on adding these, which prevents us from
+ enabling the isolatedDeclarations option. Sigh. */
"allowJs": true,
"incremental": true,
/* MUI doesn't work with exactOptionalPropertyTypes yet. */
diff --git a/web/packages/build-config/tsconfig-typecheck.json b/web/packages/build-config/tsconfig-typecheck.json
index b2cc37216a..ca5722c748 100644
--- a/web/packages/build-config/tsconfig-typecheck.json
+++ b/web/packages/build-config/tsconfig-typecheck.json
@@ -60,12 +60,6 @@
/* Ask TypeScript to warn us if we use TypeScript features that cannot
be used by single-file transpilers */
"isolatedModules": true,
- /* Require sufficient type annotations on exports so that non-tsc tools
- can trivially (and quickly) generate declaration files */
- // TODO: [Note: Enable isolatedDeclarations one by one]
- // "isolatedDeclarations": true,
- /* Required for isolatedDeclarations */
- // "composite": true,
/* Enable various workarounds to play better with CJS libraries */
"esModuleInterop": true,
diff --git a/web/packages/utils/tsconfig.json b/web/packages/utils/tsconfig.json
index d3340b2f7b..77c5523525 100644
--- a/web/packages/utils/tsconfig.json
+++ b/web/packages/utils/tsconfig.json
@@ -1,6 +1,16 @@
{
"extends": "@/build-config/tsconfig-typecheck.json",
- // TODO: [Note: Enable isolatedDeclarations one by one]
- "compilerOptions": { "isolatedDeclarations": true, "composite": true },
+ "compilerOptions": {
+ /* Require sufficient type annotations on exports so that non-tsc tools
+ can trivially (and quickly) generate declaration files
+
+ Eventually, we'd want to enable this for all our code, but currently
+ that cannot be done because it clashes with the allowJs flag that
+ Next.js insists on adding.
+ */
+ "isolatedDeclarations": true,
+ /* Required for isolatedDeclarations */
+ "composite": true
+ },
"include": ["."]
}