refactor: fix type errors and improve type safety in PDF logic

- Add proper type assertions for DOM element properties
- Remove unused md-to-pdf feature
- Fix type errors in various PDF manipulation functions
- Improve type safety for HTML element interactions
This commit is contained in:
abdullahalam123 committed 2025-10-17 15:01:48 +05:30
1 parent 298135ab0d
commit cc83d7951f
18 files changed
+1033 -729

No files matched your search

+4 -6
View File
@@ -273,13 +273,11 @@ export async function setupCropperTool() {
// Get the last known crop from the active page before processing
saveCurrentCrop();
// @ts-expect-error TS(2339) FIXME: Property 'checked' does not exist on type 'HTMLEle... Remove this comment to see the full error message
const isDestructive = document.getElementById(
'destructive-crop-toggle'
const isDestructive = (
document.getElementById('destructive-crop-toggle') as HTMLInputElement
).checked;
// @ts-expect-error TS(2339) FIXME: Property 'checked' does not exist on type 'HTMLEle... Remove this comment to see the full error message
const isApplyToAll = document.getElementById(
'apply-to-all-toggle'
const isApplyToAll = (
document.getElementById('apply-to-all-toggle') as HTMLInputElement
).checked;
let finalCropData = {};