Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Jun 22, 2019
1 parent de0af19 commit 24698f7
Show file tree
Hide file tree
Showing 4 changed files with 543 additions and 422 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/vue-color": "^2.4.2",
"app2png": "https://github.com/oliverschwendener/app2png",
"axios": "^0.18.0",
"electron": "^5.0.1",
"electron": "^5.0.5",
"electron-builder": "^20.40.2",
"electron-store": "^3.2.0",
"fuse.js": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion src/common/config/electron-store-config-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { UserConfigOptions } from "./user-config-options";
import { mergeUserConfigWithDefault } from "../helpers/config-helpers";

export class ElectronStoreConfigRepository implements ConfigRepository {
private readonly store: Store;
private readonly store: Store<UserConfigOptions>;
private readonly configStoreKey = "userConfigOptions";
private readonly defaultOptions: UserConfigOptions;

Expand Down
4 changes: 2 additions & 2 deletions src/main/favorites/electron-store-favorite-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { SearchResultItem } from "../../common/search-result-item";
import Store = require("electron-store");

export class ElectronStoreFavoriteRepository implements FavoriteRepository {
private readonly store: Store;
private readonly store: Store<Favorite[]>;
private readonly favoritesStoreKey = "favorites";
private favorites: Favorite[];

constructor() {
this.store = new Store();
this.favorites = this.store.get(this.favoritesStoreKey) as Favorite[] || [];
this.favorites = this.store.get(this.favoritesStoreKey);
}

public get(searchResultItem: SearchResultItem): Favorite | undefined {
Expand Down
Loading

0 comments on commit 24698f7

Please sign in to comment.