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
2025-10-17 15:01:48 +05:30
parent 298135ab0d
commit cc83d7951f
18 changed files with 1033 additions and 729 deletions
+2 -2
View File
@@ -126,9 +126,9 @@ export function setupSplitTool() {
export async function split() {
// @ts-expect-error TS(2339) FIXME: Property 'value' does not exist on type 'HTMLEleme... Remove this comment to see the full error message
const splitMode = document.getElementById('split-mode').value;
// @ts-expect-error TS(2339) FIXME: Property 'checked' does not exist on type 'HTMLEle... Remove this comment to see the full error message
const downloadAsZip =
document.getElementById('download-as-zip')?.checked || false;
(document.getElementById('download-as-zip') as HTMLInputElement)?.checked ||
false;
showLoader('Splitting PDF...');