Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add deprecation notice to ElectronFile

Manav Rathi0eedd5e57fbd
diff --git a/desktop/src/types/index.ts b/desktop/src/types/index.ts
index 87f724b58a..d2cd8ef644 100644
--- a/desktop/src/types/index.ts
+++ b/desktop/src/types/index.ts
@@ -1,3 +1,15 @@
+/**
+ * Deprecated - Use File + webUtils.getPathForFile instead
+ *
+ * Electron used to augment the standard web
+ * [File](https://developer.mozilla.org/en-US/docs/Web/API/File) object with an
+ * additional `path` property. This is now deprecated, and will be removed in a
+ * future release.
+ * https://www.electronjs.org/docs/latest/api/file-object
+ *
+ * The alternative to the `path` property is to use `webUtils.getPathForFile`
+ * https://www.electronjs.org/docs/latest/api/web-utils
+ */
export interface ElectronFile {
name: string;
path: string;