Clean up and fixes
This commit is contained in:
+11
-11
@@ -2,8 +2,8 @@
|
||||
* Shared types for the CLI TUI.
|
||||
*/
|
||||
|
||||
import type { WalletController } from '../controllers/wallet-controller.js';
|
||||
import type { InvitationController } from '../controllers/invitation-controller.js';
|
||||
import type { AppService } from '../services/app.js';
|
||||
import type { AppConfig } from '../app.js';
|
||||
|
||||
/**
|
||||
* Screen names for navigation.
|
||||
@@ -51,13 +51,17 @@ export interface NavigationContextType {
|
||||
}
|
||||
|
||||
/**
|
||||
* App context interface - provides access to controllers and app-level functions.
|
||||
* App context interface - provides access to AppService and app-level functions.
|
||||
*/
|
||||
export interface AppContextType {
|
||||
/** Wallet controller for wallet operations */
|
||||
walletController: WalletController;
|
||||
/** Invitation controller for invitation operations */
|
||||
invitationController: InvitationController;
|
||||
/** AppService instance (null before wallet initialization) */
|
||||
appService: AppService | null;
|
||||
/** Initialize wallet with seed phrase and create AppService */
|
||||
initializeWallet: (seed: string) => Promise<void>;
|
||||
/** Whether the wallet is initialized */
|
||||
isWalletInitialized: boolean;
|
||||
/** Application configuration */
|
||||
config: AppConfig;
|
||||
/** Show an error message dialog */
|
||||
showError: (message: string) => void;
|
||||
/** Show an info message dialog */
|
||||
@@ -68,10 +72,6 @@ export interface AppContextType {
|
||||
exit: () => void;
|
||||
/** Update status bar message */
|
||||
setStatus: (message: string) => void;
|
||||
/** Whether the wallet is initialized */
|
||||
isWalletInitialized: boolean;
|
||||
/** Set wallet initialized state */
|
||||
setWalletInitialized: (initialized: boolean) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user