Skip to content

Commit 05a769d

Browse files
committed
Fix the TypeScript type for initRenderer
Fixes #163
1 parent a5bae30 commit 05a769d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ declare class ElectronStore<T extends Record<string, any> = Record<string, unkno
5454
constructor(options?: ElectronStore.Options<T>);
5555

5656
/**
57-
Open the storage file in the user's editor.
57+
Initializer to set up the required `ipc` communication channels for the module when a `Store` instance is not created in the main process and you are creating a `Store` instance in the Electron renderer process only.
5858
*/
59-
openInEditor(): void;
59+
static initRenderer(): void;
6060

6161
/**
62-
Initializer to set up the required `ipc` communication channels for the module when a `Store` instance is not created in the main process and you are creating a `Store` instance in the Electron renderer process only.
62+
Open the storage file in the user's editor.
6363
*/
64-
initRenderer(): void;
64+
openInEditor(): void;
6565
}
6666

6767
export = ElectronStore;

0 commit comments

Comments
 (0)