Skip to content

fix(site): type Monaco onChange value param (clears ts7006)#208

Merged
Exoridus merged 1 commit into
feat/v0.15from
fix/site-editorcode-onchange-type
Jun 27, 2026
Merged

fix(site): type Monaco onChange value param (clears ts7006)#208
Exoridus merged 1 commit into
feat/v0.15from
fix/site-editorcode-onchange-type

Conversation

@Exoridus

Copy link
Copy Markdown
Owner

onChange={value => setEditorValue(value ?? '')} left value implicitly any — the only error astro check reported on the site (EditorCode.tsx:352 ts(7006)). Annotated value: string | undefined (the @monaco-editor/react OnChange signature). No behaviour change; astro check now reports 0 errors.

Note: while here I thoroughly investigated the reported "modified-status" bug via Playwright (load / type / delete / undo / run / edit-after-run) — the status is correct in every scenario and the trailing-newline hypothesis doesn't hold (all example sources end with a single consistent \n). No reproducible bug, so no speculative dirty-tracking refactor.

`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.
@Exoridus Exoridus merged commit 0976e82 into feat/v0.15 Jun 27, 2026
@Exoridus Exoridus deleted the fix/site-editorcode-onchange-type branch June 27, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant