From b30e43afab4409b523be7c409fc70d359c0ed271 Mon Sep 17 00:00:00 2001 From: Exoridus Date: Sat, 27 Jun 2026 19:07:26 +0200 Subject: [PATCH] fix(site): type the Monaco onChange value param (clears ts7006) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `onChange={value => ...}` left `value` implicitly `any` — the only error `astro check` reported on the site. Annotate it `string | undefined` (the @monaco-editor/react OnChange signature). No behaviour change; `astro check` is now clean. --- site/src/components/EditorCode.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/components/EditorCode.tsx b/site/src/components/EditorCode.tsx index 13511db4..43722a5d 100644 --- a/site/src/components/EditorCode.tsx +++ b/site/src/components/EditorCode.tsx @@ -349,7 +349,7 @@ export const EditorCode = forwardRef(function height="100%" language={language} loading={null} - onChange={value => setEditorValue(value ?? '')} + onChange={(value: string | undefined) => setEditorValue(value ?? '')} onMount={onMount} options={{ automaticLayout: true,