MCPcopy Create free account
hub / github.com/AnYanYi/Linux-app-installer / UseLinuxInitReturn

Interface UseLinuxInitReturn

src/hooks/useLinuxInit.ts:15–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13// Everything the app needs to work
14
15export interface UseLinuxInitReturn {
16 selectedDistro: DistroId;
17 selectedApps: Set<string>;
18 setSelectedDistro: (distroId: DistroId) => void;
19 toggleApp: (appId: string) => void;
20 selectAll: () => void;
21 clearAll: () => void;
22 isAppAvailable: (appId: string) => boolean;
23 getPackageName: (appId: string) => string | null;
24 generatedCommand: string;
25 selectedCount: number;
26 availableCount: number;
27 // Arch/AUR specific
28 hasYayInstalled: boolean;
29 setHasYayInstalled: (value: boolean) => void;
30 selectedHelper: 'yay' | 'paru';
31 setSelectedHelper: (helper: 'yay' | 'paru') => void;
32 hasAurPackages: boolean;
33 aurPackageNames: string[];
34 aurAppNames: string[];
35 // Hydration state
36 isHydrated: boolean;
37}
38
39const STORAGE_KEY_DISTRO = 'linuxinit_distro';
40const STORAGE_KEY_APPS = 'linuxinit_apps';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected