Skip to content

Tighten types in organvm/portfolio#155

Open
4444J99 wants to merge 1 commit into
mainfrom
limen/gen-organvm-portfolio-typing-0626-775e
Open

Tighten types in organvm/portfolio#155
4444J99 wants to merge 1 commit into
mainfrom
limen/gen-organvm-portfolio-typing-0626-775e

Conversation

@4444J99

@4444J99 4444J99 commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • chart-loader.ts: Added explicit : unknown return types to parseChartPayload and readChartData so JSON.parse's implicit any does not leak through to callers
  • OmegaGalaxy.astro: Introduced a GalaxyProject interface for project data parsed from the DOM data-projects attribute, replacing three bare : any annotations with inferred types from the typed cast

Test plan

  • npm run typecheck:strict — 0 hints (budget 0, phase W12)
  • vitest run — 279 tests pass, 29 skipped
  • npm run lint:fix — no fixes applied

limen task GEN-organvm-portfolio-typing-0626

🤖 Generated with Claude Code

- chart-loader.ts: add explicit `: unknown` return types on
  parseChartPayload and readChartData so JSON.parse's implicit any
  does not leak into callers
- OmegaGalaxy.astro: introduce GalaxyProject interface and cast the
  JSON.parse result, replacing three bare `: any` annotations with
  inferred types

limen task GEN-organvm-portfolio-typing-0626

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant