( store: Pick<ElectronStore<T>, 'store'>, value: T, )
| 83 | } |
| 84 | |
| 85 | export function replaceStoreIfChanged<T extends Record<string, any>>( |
| 86 | store: Pick<ElectronStore<T>, 'store'>, |
| 87 | value: T, |
| 88 | ): void { |
| 89 | if (JSON.stringify(store.store) !== JSON.stringify(value)) { |
| 90 | store.store = value |
| 91 | } |
| 92 | } |
no outgoing calls
no test coverage detected