Repository navigation
Turn on TypeScript strict mode - #530
Merged
jtklein merged 6 commits intoNov 27, 2026
Merged
Conversation
processHelpers optional-chains the stdout/stderr pipes, modelSelection throws explicitly on a missing best-model match (same catch, same user message), paths falls back on pop(), bootstrap spreads instead of [].concat. --strict errors: 149 -> 142, zero in these files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OptionSelect is generic over its value type, and every prop type that embeds it names the real type. Handlers registered with ipcMain.handle take IpcMainInvokeEvent. The unhandled-error bridge event has a typed payload. Option gains an Input type parameter so part start and end accept the text OptionTextField hands them. Closes #407 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
typecheckAlignment returns a TypecheckedAlignment with dataType, numSequences, fileFormat, hasInvariantSites and typecheckingComplete required, and AlignmentParseResult carries it. Store fields that stay undefined until load widen their readers' types; lookups that cannot miss throw a plain Error. strict tsc: 149 -> 118 errors, none in the touched non-test files. Refs #408 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…412) processHelpers optional-chains the stdout/stderr pipes, modelSelection throws explicitly on a missing best-model match (same catch, same user message), paths falls back on pop(), bootstrap spreads instead of [].concat. --strict errors: 149 -> 142, zero in these files. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
tsconfig sets "strict": true and drops the flags it implies. Test files
use `!` where a lookup is known to hit; the null-parent Runs use
`{} as RunParent`. Strict surfaced a clash between the store's optional
hoverInfo and the option components' required one, and Input's
astralTree prop; both are loosened to match the store, with no runtime
change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-on-strict-mode Strict tests and turn on strict mode
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Turns on TypeScript strict mode. Type-only: the app behaves as before.
Lands four reviewed child PRs (jtklein-agents/raxmlGUI #411–#414), in order:
No new
@ts-ignore/@ts-expect-error. Bugs strict mode exposed that change what the user sees are filed separately, not fixed here.Evidence
upstream/master,d740620):tsc --noEmit -p tsconfig.json --strict→ 149 errorsAfter (this branch merged onto
upstream/master):tsc --noEmit -p tsconfig.json→ 0 errors, withstrict: trueMerge Danger
Door: two-way
Revert restores the old
tsconfig.jsonand code; nothing persisted changes.Blast Radius: contributors
New code must now pass strict null and function-type checks, so open PRs against
mastermay failyarn typecheckuntil rebased and fixed. 63 files touched, so expect merge conflicts insrc/app/storeandsrc/main.🤖 Generated with Claude Code