Files
Folo/apps/desktop/layer/main/src/ipc/services/debug.ts
T
Innei 0ede6fb2cd feat(dependencies): refactor ipc decorator
- 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>
2025-08-23 18:32:55 +08:00

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)
}
}