Skip to content

armgit / ente

Public Imported from GitHub
0

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

[web] Start using TypeScript 5.5 goodies

Manav Rathi547d03049a39
diff --git a/web/apps/auth/src/services/remote.ts b/web/apps/auth/src/services/remote.ts
index 93429be259..c1cf045615 100644
--- a/web/apps/auth/src/services/remote.ts
+++ b/web/apps/auth/src/services/remote.ts
@@ -42,7 +42,7 @@ export const getAuthCodes = async (): Promise<Code[]> => {
}),
);
// Remove undefined values
- const filteredAuthCodes = authCodes.filter((f): f is Code => !!f);
+ const filteredAuthCodes = authCodes.filter((f) => !!f);
filteredAuthCodes.sort((a, b) => {
if (a.issuer && b.issuer) {
return a.issuer.localeCompare(b.issuer);
diff --git a/web/packages/new/photos/services/ffmpeg/worker.ts b/web/packages/new/photos/services/ffmpeg/worker.ts
index 11d2e654d0..ef321c494d 100644
--- a/web/packages/new/photos/services/ffmpeg/worker.ts
+++ b/web/packages/new/photos/services/ffmpeg/worker.ts
@@ -128,7 +128,4 @@ const substitutePlaceholders = (
return segment;
}
})
- // TODO: The type guard should automatically get deduced with TS 5.5
- // We still need to wait for VSCode to ship with TS 5.5 otherwise the
- // red squigglies in the editor will remain.
- .filter((s): s is string => !!s);
+ .filter((s) => !!s);