Skip to content

Commit

Permalink
Return value of shell.openPath in openInEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
kiavashp committed Mar 4, 2024
1 parent d120209 commit e9cfe8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ declare class ElectronStore<T extends Record<string, any> = Record<string, unkno
/**
Open the storage file in the user's editor.
*/
openInEditor(): void;
openInEditor(): Promise<string>;
}

export = ElectronStore;
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ElectronStore extends Conf {
}

openInEditor() {
shell.openPath(this.path);
return shell.openPath(this.path);
}
}

Expand Down

0 comments on commit e9cfe8e

Please sign in to comment.