Repository navigation
Turn on strictFunctionTypes - #411
Merged
jtklein-agents merged 1 commit intoNov 27, 2026
Merged
Conversation
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>
9 tasks
jtklein-agents
added a commit
that referenced
this pull request
Nov 27, 2026
* Type-check main process and app files under strictNullChecks (#409) 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> * Turn on strictFunctionTypes (#411) 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> * Type the parse result and store models under strictNullChecks (#413) 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> * Turn on strict mode and type-check the tests under it (#410) 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> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #407
Summary
tsconfig.jsonturns onstrictFunctionTypes. Fixes for what it flags:One mismatch the ticket did not list (it was hidden behind the first
OptionSelecterror): part start and end are number options, butOptionTextFieldhands them the field's text, which the yup number schema casts.Optiongains anInputtype parameter, so only the type changes:OptionTextFieldandOptionCheckare unchanged. NosetValuebecomes method syntax.Evidence
yarn typecheckfails:Part.test.tsused@ts-expect-errorto pass'7'and'abc'tostart.setValue.After:
yarn verifypasses: lint, typecheck, and 72 test files / 497 tests.Part.test.tspasses those strings with no directive.Merge Danger
Door: two-way
Types only, apart from one added
satisfies. Rolling back is a revert.Blast Radius: typecheck
Nothing changes at runtime.
PartStart.valueandPartEnd.valueare still typednumberwhile they hold the raw text of an invalid input such as'abc'. That was already true before this change; the cast inOption.setValuenow says so in a comment.🤖 Generated with Claude Code