Interface: GuardedIpcServiceHelpers
Defined in: src/services/utils/createIpcServiceHelpers.ts:129
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:131
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:136
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>
Parametersโ
argsโ
...Args
Returnsโ
Promise<Result>