From 69871e71f1c3a17a0a2b99a1a6419b762fa929c3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Jul 2026 21:06:27 -0400 Subject: [PATCH] fix(core): correct two CalcInfo type errors missed by the build npm run build only type-checks components something imports, so the three tasks that ported components in isolation were never actually checked. A temporary probe importing all five surfaced these: - uploadNative declared its param as Event & {target: HTMLInputElement}, which is not assignable to the DOM's (payload: Event) => void handler. Cast inside the function instead. - info.os_extension.split('.').pop() is string | undefined but uploadOs takes string. Extracted to an osExtension computed with a '' fallback. Only CalcInfo was affected; FileIcon, FileView, DeviceSelect, and DeviceQueue all passed. Co-Authored-By: Claude Opus 4.8 --- n-link-core/components/CalcInfo.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/n-link-core/components/CalcInfo.vue b/n-link-core/components/CalcInfo.vue index 48fc8dd..932612e 100644 --- a/n-link-core/components/CalcInfo.vue +++ b/n-link-core/components/CalcInfo.vue @@ -31,7 +31,7 @@