π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Prone to confusion between the object and the type
Manav Rathie1923fdebd9e
diff --git a/web/packages/media/file-type.ts b/web/packages/media/file-type.tsindex 58083c97fa..a65c1ab341 100644--- a/web/packages/media/file-type.ts+++ b/web/packages/media/file-type.ts@@ -1,9 +1,9 @@/** The type of an {@link EnteFile}. */-export const FileType = {+export enum FileType {/** An image (e.g. JPEG). */- image: 0,+ image = 0,/** A video (e.g. MP4). */- video: 1,+ video = 1,/*** A live photo, aka motion photo.*@@ -11,10 +11,8 @@ export const FileType = {* before and after when the image was taken. We preserve it as a zip* containing both the parts.*/- livePhoto: 2,-} as const;--export type FileType = (typeof FileType)[keyof typeof FileType];+ livePhoto = 2,+}export interface FileTypeInfo {fileType: FileType;