Would a low-risk JS type-checking pilot help the frontend? #3375
undergroundrap
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone,
As the frontend grows, I’m wondering whether a small type-checking pilot would help catch state/shape bugs without forcing a big frontend migration.
I am not proposing an overnight JavaScript -> TypeScript rewrite, a bundler change, or converting large UI modules. The low-risk version I have in mind would be one of:
tsconfig.jsonwithallowJs/checkJsfor opt-in checking only;static/jsmodule;The goal would be to test whether type-checking reduces reviewer/debugging load, especially around shared frontend state objects, endpoint payloads, Cookbook server profiles, model endpoint rows, and other shape-heavy code.
Related note: I saw #68 raised broader project-structure/frontend concerns, but this poll is intentionally narrower. I’m not trying to reopen a large refactor discussion; I’m asking whether a small opt-in
checkJs/ JSDoc pilot would be useful enough to evaluate on its own.If maintainers are interested, I’d be happy to propose a tiny first slice with no behavior changes and no build pipeline change.
2 votes ·
All reactions