Type Alias: LifecycleDependencies
type LifecycleDependencies = {
appRef: () => AppLike | undefined;
browserWindowRef: () => BrowserWindowLike | undefined;
exposeDevHelpers: () => unknown;
getMainWindow: () => MainAppStateWindowLike | null;
initializeApplication: () =>
| Promise<WindowLike | undefined>
| WindowLike
| undefined;
logWithContext: (
level: string,
message: string,
context?: Record<string, unknown>
) => void;
setupApplicationEventHandlers: () => void;
setupIPCHandlers: (win: WindowLike | undefined) => void;
setupMenuAndEventHandlers: () => void;
};
Defined in: main/runtime/setupMainLifecycle.ts:29
Propertiesβ
appRefβ
appRef: () => AppLike | undefined;
Defined in: main/runtime/setupMainLifecycle.ts:30
Returnsβ
AppLike | undefined
browserWindowRefβ
browserWindowRef: () => BrowserWindowLike | undefined;
Defined in: main/runtime/setupMainLifecycle.ts:31
Returnsβ
BrowserWindowLike | undefined
exposeDevHelpersβ
exposeDevHelpers: () => unknown;
Defined in: main/runtime/setupMainLifecycle.ts:32
Returnsβ
unknown
getMainWindowβ
getMainWindow: () =>
| MainAppStateWindowLike
| null;
Defined in: main/runtime/setupMainLifecycle.ts:33
Returnsβ
| MainAppStateWindowLike
| null
initializeApplicationβ
initializeApplication: () =>
| Promise<WindowLike | undefined>
| WindowLike
| undefined;
Defined in: main/runtime/setupMainLifecycle.ts:34
Returnsβ
| Promise<WindowLike | undefined>
| WindowLike
| undefined
logWithContextβ
logWithContext: (level: string, message: string, context?: Record<string, unknown>) => void;
Defined in: main/runtime/setupMainLifecycle.ts:38
Parametersβ
levelβ
string
messageβ
string
context?β
Record<string, unknown>
Returnsβ
void
setupApplicationEventHandlersβ
setupApplicationEventHandlers: () => void;
Defined in: main/runtime/setupMainLifecycle.ts:43
Returnsβ
void
setupIPCHandlersβ
setupIPCHandlers: (win: WindowLike | undefined) => void;
Defined in: main/runtime/setupMainLifecycle.ts:44
Parametersβ
winβ
WindowLike | undefined
Returnsβ
void
setupMenuAndEventHandlersβ
setupMenuAndEventHandlers: () => void;
Defined in: main/runtime/setupMainLifecycle.ts:45
Returnsβ
void