All files / app/store persist-middleware.ts

0% Statements 0/6
100% Branches 0/0
0% Functions 0/4
0% Lines 0/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11                     
export const reduxPersistElectronStore = () => {
  return {
    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
    getItem: async (key: any) => main.store.get(key),
    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
    setItem: async (key: any, item: any) => main.store.set(key, item),
    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
    removeItem: async (key: any) => main.store.delete(key),
  };
};