Skip to content

Commit

Permalink
Fix the TypeScript type for initRenderer
Browse files Browse the repository at this point in the history
Fixes #163
  • Loading branch information
sindresorhus committed Feb 1, 2021
1 parent a5bae30 commit 05a769d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ declare class ElectronStore<T extends Record<string, any> = Record<string, unkno
constructor(options?: ElectronStore.Options<T>);

/**
Open the storage file in the user's editor.
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.
*/
openInEditor(): void;
static initRenderer(): void;

/**
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.
Open the storage file in the user's editor.
*/
initRenderer(): void;
openInEditor(): void;
}

export = ElectronStore;

0 comments on commit 05a769d

Please sign in to comment.