Skip to content

fix: add rawCount to return type and suppress unused var warning#1

Open
panayotovip wants to merge 1 commit into
plamen5rov:masterfrom
panayotovip:master
Open

fix: add rawCount to return type and suppress unused var warning#1
panayotovip wants to merge 1 commit into
plamen5rov:masterfrom
panayotovip:master

Conversation

@panayotovip
Copy link
Copy Markdown

Problem

The project failed to build with 7 TypeScript errors.

Changes

  • src/lib/github.ts — added rawCount: number to the return type of fetchReposWithIntelligence. The field was already being returned on lines 428 and 452 but was missing from the function's type declaration, causing a type mismatch with ReposPage.
  • src/components/FilterSidebar.tsx — prefixed unused showLanguagePicker state variable with _ to satisfy the noUnusedLocals TypeScript compiler option.

Result

npm run build completes successfully.

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