mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-29 13:34:27 +08:00
[Feat] Basic PLS lifecycle mgmt
This commit is contained in:
2
src/aura/types/shared/global.d.ts
vendored
2
src/aura/types/shared/global.d.ts
vendored
@@ -3,6 +3,7 @@ import type EventBus from "../../utils/eventBus";
|
||||
import { HookedWindowsMap, UIHooksMap, WindowHooksMap } from "../main/core";
|
||||
import { UIHooksObject } from "../render/uiHook";
|
||||
import ConfigManager from "../../init/shared/configManager";
|
||||
import { PLSStatus } from "./pls/status";
|
||||
|
||||
type MainProcessOnlyVal<T> = T;
|
||||
type RendererProcessOnlyVal<T> = T;
|
||||
@@ -15,6 +16,7 @@ interface GlobalHugoAuraInfo {
|
||||
plsRules?: Record<any, any> | null;
|
||||
plsSettings?: Record<any, any> | null;
|
||||
plsStats?: PLSStatus | null;
|
||||
plsWs?: RendererProcessOnlyVal<WebSocket>;
|
||||
uiHooks?: MainProcessOnlyVal<UIHooksMap>;
|
||||
windowHooks?: MainProcessOnlyVal<WindowHooksMap>;
|
||||
version: RendererProcessOnlyVal<string>;
|
||||
|
||||
2
src/aura/types/shared/pls/status.d.ts
vendored
2
src/aura/types/shared/pls/status.d.ts
vendored
@@ -1,3 +1,5 @@
|
||||
import { RendererProcessOnlyVal } from "../global";
|
||||
|
||||
interface PLSStatus {
|
||||
installed: boolean;
|
||||
detached: boolean;
|
||||
|
||||
Reference in New Issue
Block a user