Refactor imports and types for consistency and remove redundant paths
- Updated relative imports by replacing `@/` aliases with proper `../` paths for consistency. - Refined type definitions in IPC handlers and repositories (`User`, `Chapter`, `Act`, etc.). - Simplified return types in `Location` model methods for streamlined usage.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { ipcMain } from 'electron';
|
||||
import { createHandler } from '../database/LocalSystem.js';
|
||||
import Chapter from '../database/models/Chapter.js';
|
||||
import type { ChapterProps, CompanionContent, ActStory } from '../database/models/Chapter.js';
|
||||
import type { ChapterProps, CompanionContent } from '../database/models/Chapter.js';
|
||||
import type { ActStory } from '../database/models/Act.js';
|
||||
|
||||
interface GetWholeChapterData {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user