Revert implicit-any typing and convert src/ JavaScript to TypeScript #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "types/ts-conversion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reverts the implicit-any typing from #3 and converts the frontend's JavaScript modules to TypeScript, letting types come from inference instead of hand-written declarations.
Revert (
5cedc68).d.tsfiles beside the JS modules and the annotations threaded throughsrc/fornoImplicitAny;tsconfigturnsnoImplicitAnyoff.FALLBACK_COLORfor an uncoloured region instead of painting black.Conversion (
22d5328)src/**/*.jsmodules to.ts(api, useResource, adminSchema, navConfig, adminNav, src/data/*) and updates imports, comments, CLAUDE.md and the seed script's module paths.strictstays on. Remaining errors get the lightest fix:anyon empty state/contexts/list defaults,: anyon components with optional or spread props, class fields onApiError.PageShell'sShellSection,useContent's corrected record types andEventListItem, andTimelineRef.orgKind.Notes
server/src/seed.jsnow importssrc/data/*.ts, which needs Node >= 23.6 (native type stripping). The server'senginesstill says >= 22.GROUPS/SPLITS/CHAPTERSfromchapters, which no longer exports them. That predates this branch and is untouched here.Verification
pnpm exec tsc: cleanpnpm build: passes🤖 Generated with Claude Code