Browse Source
* Refactor and consolitdate store imports - Created a new index file in the core stores directory to export all stores from a single module. - Updated imports to use consolidated store exports. * Remove unnecessary import * Update imports * Use named exports * Change store import after merge --------- Co-authored-by: philon- <[email protected]>pull/776/head
committed by
GitHub
81 changed files with 113 additions and 122 deletions
@ -1,6 +1,6 @@ |
|||||
import type { Protobuf } from "@meshtastic/core"; |
import type { Protobuf } from "@meshtastic/core"; |
||||
import { vi } from "vitest"; |
import { vi } from "vitest"; |
||||
import type { Device } from "./deviceStore.ts"; |
import type { Device } from "./index.ts"; |
||||
|
|
||||
/** |
/** |
||||
* You can spread this base mock in your tests and override only the |
* You can spread this base mock in your tests and override only the |
||||
@ -0,0 +1,22 @@ |
|||||
|
export { useAppStore } from "@core/stores/appStore"; |
||||
|
|
||||
|
export { |
||||
|
type Device, |
||||
|
DeviceContext, |
||||
|
useDevice, |
||||
|
useDeviceStore, |
||||
|
type ValidConfigType, |
||||
|
type ValidModuleConfigType, |
||||
|
} from "@core/stores/deviceStore"; |
||||
|
|
||||
|
export { |
||||
|
MessageState, |
||||
|
type MessageStore, |
||||
|
MessageType, |
||||
|
useMessageStore, |
||||
|
} from "@core/stores/messageStore"; |
||||
|
|
||||
|
export { |
||||
|
SidebarProvider, |
||||
|
useSidebar, |
||||
|
} from "@core/stores/sidebarStore"; |
||||
Loading…
Reference in new issue