Repository navigation
Done
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
The parse result and the store models type-check under strictNullChecks, while the flag stays off.
Acceptance criteria
-
typecheckAlignment(src/common/typecheckAlignment.ts) returns a typechecked alignment type in whichdataType,numSequences,fileFormat,hasInvariantSitesandtypecheckingCompleteare required, andAlignmentParseResult(src/main/parseAlignment.ts) carries that type.Alignment.loadParsedAlignmentcopies those fields with no narrowing. -
Alignment.dataType,fileFormatandconvertedFromstay| undefineduntil loaded. The types that copy them widen to match:AlignmentLikeinAlignmentOptions.tsand inPartOptions.ts,PartitionAlignmentinPartition.ts, and theRun.dataTypegetter (DataType | undefined). Code that reads them narrows;runModelTestguards onmodelTestCanRun. - No placeholder data type (for example
'unknown') stands in for "not parsed yet". - Lookups that can't miss throw a plain
Errornaming the missing value:Run.analysisOption'sfind, and each.test()-then-.exec()[0]inAlignment.setModelFromString, which becomes onematchwith a guard. - The protein matrix
re.exec( model )[1]insetModelFromStringis left behaving as today, since Applying a modeltest result with an unlisted protein matrix throws a TypeError owns it; narrowing it for the compiler keeps the same outcome. -
InputFile.runis declaredrun: Owner;with no initializer.RunParentstays required. -
Option'sdescription/hoverInfofields, thePartOptionsend-position schema test,Run.convertedAlignmentFrom,Run.astralArgsandStoreBase's optional call type-check without!. - Production code uses
!only with a one-line comment giving the reason. -
tsc --noEmit -p tsconfig.json --strictshows zero errors in the non-test files this ticket touches, and a total no higher than before; both counts are in the PR description. -
yarn verifypasses.
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Type the parse result and store models under strictNullChecks (#413)
jtklein-agents commentedon Nov 27, 2026
Merged into spec/406-strict-typescript via #413 (2d38081).
Turn on TypeScript strict mode (AntonelliLab#530)