You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
desktop: vue-tsc fails with 5 type errors on http/https union in electron/main/index.ts #563
npm run build (which runs vue-tsc --noEmit) in mateclaw-desktop fails with 5 type errors, all in electron/main/index.ts:
electron/main/index.ts(303,24): error TS2349: This expression is not callable.
electron/main/index.ts(303,57): error TS7006: Parameter 'res' implicitly has an 'any' type.
electron/main/index.ts(433,24): error TS2349: This expression is not callable.
electron/main/index.ts(433,56): error TS7006: Parameter 'res' implicitly has an 'any' type.
electron/main/index.ts(440,22): error TS7006: Parameter 'err' implicitly has an 'any' type.
Root cause
Introduced in b563f93c (open-source the Electron desktop app). The backend health-check code does:
client is inferred as typeof https | typeof http — a union type. TypeScript refuses to call .get() on a union because the two overloads aren't identical (TS2349), which then cascades: the callback parameters can't be inferred, producing the TS7006 implicit-any errors on res and err.
This affects both occurrences of the health-check helper (lines ~300 and ~433).
Activity