Browse Source

Merge pull request #247 from electron-userland/update-typescript-definition

Update electron.d.ts for 1.6.9
Kevin Sawicki 8 years ago
parent
commit
878b7e373f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      npm/electron.d.ts

+ 2 - 2
npm/electron.d.ts

@@ -1,4 +1,4 @@
-// Type definitions for Electron 1.6.8
+// Type definitions for Electron 1.6.9
 // Project: http://electron.atom.io/
 // Definitions by: The Electron Team <https://github.com/electron/electron>
 // Definitions: https://github.com/electron/electron-typescript-definitions
@@ -2333,7 +2333,7 @@ declare namespace Electron {
      * Note: The following methods are useful specifically to resume a cancelled item
      * when session is restarted.
      */
-    getState(): string;
+    getState(): ('progressing' | 'completed' | 'cancelled' | 'interrupted');
     /**
      * If the size is unknown, it returns 0.
      */