Interface: GuardedIpcServiceHelpers
Defined in: src/services/utils/createIpcServiceHelpers.ts:143
Typed wrapper utilities for building guarded IPC services.
Remarksโ
Returned by createIpcServiceHelpers and getIpcServiceHelpers.
Consumers typically spread these helpers into service objects exposed from
src/services.
Propertiesโ
ensureInitializedโ
ensureInitialized: () =>
Promise<void>
Defined in: src/services/utils/createIpcServiceHelpers.ts:145
Ensures the preload bridge is ready before IPC calls.
Returnsโ
Promise<void>
wrapโ
wrap: <
Args,Result>(methodName:string,handler: (api:ElectronAPI, ...args:Args) =>Promise<Result>) => (...args:Args) =>Promise<Result>
Defined in: src/services/utils/createIpcServiceHelpers.ts:151
Wraps a handler so it automatically waits for initialization and logs failures using a consistent format.
Type Parametersโ
Argsโ
Args extends unknown[]
Resultโ
Result
Parametersโ
methodNameโ
string
handlerโ
(api: ElectronAPI, ...args: Args) => Promise<Result>
Returnsโ
(...args: Args) => Promise<Result>