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:
@@ -2,12 +2,9 @@ import { showAlert } from '../ui.js';
|
||||
import { downloadFile, formatBytes, initializeQpdf, readFileAsArrayBuffer } from '../utils/helpers.js';
|
||||
import { icons, createIcons } from 'lucide';
|
||||
import JSZip from 'jszip';
|
||||
import { LinearizePdfState } from '@/types';
|
||||
|
||||
interface PageState {
|
||||
files: File[];
|
||||
}
|
||||
|
||||
const pageState: PageState = {
|
||||
const pageState: LinearizePdfState = {
|
||||
files: [],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user