You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tsconfig.json turns on strictFunctionTypes, and the code it flags is fixed.
Acceptance criteria
tsconfig.json sets "strictFunctionTypes": true.
OptionSelectOptionLike (src/app/components/OptionSelect.tsx) is generic over Value extends string | number | readonly string[], with value: Value and setValue: ( value: Value ) => void. OptionSelect is a generic observer component.
OptionSelect's onChange has exactly one cast, e.target.value as Value, with a one-line comment saying MUI's change event types the value as Value | string.
Every prop type that embeds OptionSelectOptionLike (ModelRun, RaxmlRun, the CardAlignmentng* fields, EditorAlignment.partition.partToAdd) names the field's real value type, with no default type argument: numThreads/numRuns<number>, numRepetitions/numRepetitionsNg<number | string>, outGroup<string[]>, the rest <string>.
OptionTextField and OptionCheck are unchanged.
ipcMain.handle handlers in src/main/api.ts take IpcMainInvokeEvent, not IpcMainEvent.
The RunList listener (src/app/store/RunList.ts) has a type that the listener registry accepts, with no cast.
No setValue becomes method syntax to silence the check.
Activity
Turn on strictFunctionTypes (#411)
jtklein-agents commentedon Nov 27, 2026
Merged into spec/406-strict-typescript in #411.
Turn on TypeScript strict mode (AntonelliLab#530)