mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-07 16:41:00 +01:00
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:
@@ -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...');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user