refactor(types): move shared types from renderer to shared directory

- Move type definitions from src/renderer/src/types/ to src/shared/types/
- Add @shared/* path alias to tsconfig.node.json and tsconfig.web.json
- Update all imports from @renderer/types/* to @shared/types/*
- Update AGENTS.md with new directory structure and path alias

This fixes architecture violation where main/preload processes imported
from renderer directory. Types are now properly shared across all processes.
This commit is contained in:
2026-03-12 12:57:21 +08:00
parent 1e9a01b6c1
commit 0945d7f0b2
22 changed files with 41 additions and 41 deletions

View File

@@ -14,15 +14,15 @@ import type {
DownloadResult,
GetVersionsParams,
RollbackParams,
} from "@renderer/types/ipc";
import type { Domain, DomainWithStatus } from "@renderer/types/domain";
} from "@shared/types/ipc";
import type { Domain, DomainWithStatus } from "@shared/types/domain";
import type {
KintoneSpace,
KintoneApp,
AppDetail,
FileContent,
} from "@renderer/types/kintone";
import type { Version } from "@renderer/types/version";
} from "@shared/types/kintone";
import type { Version } from "@shared/types/version";
declare global {
interface Window {