feat(typescript): upgrade TypeScript to 5.9.3, remove transpileOnly workaround

- Upgrade TypeScript from 4.9.5 to 5.9.3
- Upgrade @typescript-eslint/parser from 5.62.0 to 7.18.0
- Upgrade @typescript-eslint/eslint-plugin from 5.62.0 to 7.18.0
- Remove transpileOnly: true workaround from webpack.renderer.core.js
- Fix 9 type errors from TS5's stricter checks:
  - PropertyPanelBaseInput.tsx: Fix event handler types
  - keyboardhandler.ts: Fix KeyMod return type
  - model.ts: Remove unused @ts-expect-error directives
  - ScreenSizes.ts: Add proper type guard predicate

Closes TASK-006
This commit is contained in:
Richard Osborne
2025-12-08 16:09:31 +01:00
parent 8fed72d025
commit ef1ffdd593
10 changed files with 323 additions and 24 deletions

View File

@@ -14,11 +14,11 @@ export interface PropertyPanelBaseInputProps<ValueType = string | number> {
hasSmallText?: boolean;
onChange?: (value: ValueType) => void;
onClick?: MouseEventHandler<HTMLButtonElement>;
onMouseEnter?: MouseEventHandler<HTMLButtonElement>;
onMouseLeave?: MouseEventHandler<HTMLButtonElement>;
onFocus?: FocusEventHandler<HTMLButtonElement>;
onBlur?: FocusEventHandler<HTMLButtonElement>;
onClick?: MouseEventHandler<HTMLInputElement>;
onMouseEnter?: MouseEventHandler<HTMLInputElement>;
onMouseLeave?: MouseEventHandler<HTMLInputElement>;
onFocus?: FocusEventHandler<HTMLInputElement>;
onBlur?: FocusEventHandler<HTMLInputElement>;
onKeyDown?: KeyboardEventHandler;
onError?: (error: Error) => void;