refactor: move all TypeScript interfaces to centralized src/js/types folder

- Create type files with barrel export via @/types alias
- Update logic files to use centralized type imports
This commit is contained in:
abdullahalam123
2026-01-05 14:57:30 +05:30
parent 8a96426254
commit d52d2e3647
83 changed files with 475 additions and 312 deletions

View File

@@ -2,13 +2,9 @@ import { showAlert } from '../ui.js';
import { downloadFile, formatBytes } from '../utils/helpers.js';
import { PDFDocument, PDFName } from 'pdf-lib';
import { icons, createIcons } from 'lucide';
import { SanitizePdfState } from '@/types';
interface PageState {
file: File | null;
pdfDoc: PDFDocument | null;
}
const pageState: PageState = {
const pageState: SanitizePdfState = {
file: null,
pdfDoc: null,
};