Skip to content

armgit / ente

Public Imported from GitHub
0

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

Stay within JavaScript

Manav Rathic28b6e3a6290
diff --git a/web/packages/media/file-type.ts b/web/packages/media/file-type.ts
index c85759911a..3d34a3fe38 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 enum FileType {
+export const FileType = {
/** An image (e.g. JPEG). */
- image,
+ image: 0,
/** A video (e.g. MP4). */
- video,
+ video: 1,
/**
* A live photo, aka motion photo.
*
@@ -11,8 +11,10 @@ export enum FileType {
* before and after when the image was taken. We preserve it as a zip
* containing both the parts.
*/
- livePhoto,
-}
+ livePhoto: 2,
+} as const;
+
+export type FileType = (typeof FileType)[keyof typeof FileType];
export interface FileTypeInfo {
fileType: FileType;