Skip to main content

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