- Updated the version of electron-ipc-decorator in package.json files for both main and renderer processes to 0.2.0, ensuring compatibility with the latest features and improvements. - Adjusted pnpm-lock.yaml to reflect the new version and its integrity hash. - Refactored IPC service classes to utilize the new version, enhancing code organization and functionality. - Removed deprecated constructor calls in IPC service classes, simplifying the implementation. These changes improve dependency management and enhance the overall architecture of the IPC system. Signed-off-by: Innei <tukon479@gmail.com>
17 lines
422 B
TypeScript
17 lines
422 B
TypeScript
import type { IpcContext } from "electron-ipc-decorator"
|
|
import { IpcMethod, IpcService } from "electron-ipc-decorator"
|
|
|
|
interface InspectElementInput {
|
|
x: number
|
|
y: number
|
|
}
|
|
|
|
export class DebugService extends IpcService {
|
|
static override readonly groupName = "debug"
|
|
|
|
@IpcMethod()
|
|
inspectElement(context: IpcContext, input: InspectElementInput): void {
|
|
context.sender.inspectElement(input.x, input.y)
|
|
}
|
|
}
|