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