aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/stores/ServiceSettings.ts
Commit message (Collapse)AuthorAge
* refactor: Shared model type factoriesLibravatar Kristóf Marussy2022-03-06
Allows customization of stores both in the renderer and in the main process. Instead of exposing a basic model type from the shared module (which was be overwritted with more specific props in the main package), we expose factory function that can create specific model types in both the renderer and the main process. Using these package-specific customization to stores, the renderer package can attach IPC calls directly to store objects, which the main package can attach the handlers for IPC calls and other internal actions. Signed-off-by: Kristóf Marussy <kristof@marussy.com>