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:
@@ -110,11 +110,12 @@ function setupDrawingCanvas() {
|
||||
signState.drawContext.lineWidth = 2;
|
||||
|
||||
const colorPicker = document.getElementById('signature-color');
|
||||
// @ts-expect-error TS(2339) FIXME: Property 'value' does not exist on type 'HTMLEleme... Remove this comment to see the full error message
|
||||
|
||||
colorPicker.oninput = () =>
|
||||
(signState.drawContext.strokeStyle = colorPicker.value);
|
||||
// @ts-expect-error TS(2339) FIXME: Property 'value' does not exist on type 'HTMLEleme... Remove this comment to see the full error message
|
||||
signState.drawContext.strokeStyle = colorPicker.value;
|
||||
(signState.drawContext.strokeStyle = (
|
||||
colorPicker as HTMLInputElement
|
||||
).value);
|
||||
signState.drawContext.strokeStyle = (colorPicker as HTMLInputElement).value;
|
||||
|
||||
const start = (e: any) => {
|
||||
signState.isDrawing = true;
|
||||
|
||||
Reference in New Issue
Block a user