From f51d4a0a498740bf0e59d7f8a45556cd7ad07217 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Mon, 16 Jun 2025 09:48:32 -0600 Subject: [PATCH] fix: correct TypeScript type for VSCodeCheckbox onChange event --- webview-ui/src/components/settings/DiagnosticsSettings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webview-ui/src/components/settings/DiagnosticsSettings.tsx b/webview-ui/src/components/settings/DiagnosticsSettings.tsx index 51ae94a65e..6088f7d7b2 100644 --- a/webview-ui/src/components/settings/DiagnosticsSettings.tsx +++ b/webview-ui/src/components/settings/DiagnosticsSettings.tsx @@ -1,4 +1,4 @@ -import { HTMLAttributes, ChangeEvent } from "react" +import { HTMLAttributes } from "react" import { useAppTranslation } from "@/i18n/TranslationContext" import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react" import { AlertCircle } from "lucide-react" @@ -48,8 +48,8 @@ export const DiagnosticsSettings = ({
) => - setCachedStateField("includeDiagnostics", e.target.checked) + onChange={(e: Event) => + setCachedStateField("includeDiagnostics", (e.target as HTMLInputElement).checked) } data-testid="include-diagnostics-checkbox">