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:
@@ -3,12 +3,9 @@ import { downloadFile, formatBytes, readFileAsArrayBuffer } from '../utils/helpe
|
||||
import { PDFDocument } from 'pdf-lib';
|
||||
import { icons, createIcons } from 'lucide';
|
||||
import JSZip from 'jszip';
|
||||
import { FlattenPdfState } from '@/types';
|
||||
|
||||
interface PageState {
|
||||
files: File[];
|
||||
}
|
||||
|
||||
const pageState: PageState = {
|
||||
const pageState: FlattenPdfState = {
|
||||
files: [],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user