Skip to content

fix: remove unsafe as never type casts#634

Open
Kristyidu wants to merge 1 commit into
Smartdevs17:mainfrom
Kristyidu:fix/remove-as-never-casts
Open

fix: remove unsafe as never type casts#634
Kristyidu wants to merge 1 commit into
Smartdevs17:mainfrom
Kristyidu:fix/remove-as-never-casts

Conversation

@Kristyidu

Copy link
Copy Markdown
Contributor

Description

Removes all \�s never\ type casts from the codebase, replacing them with properly typed alternatives.

Changes Made

src/services/segmentService.ts

  • Removed \ argetValue as never\ and \ ieldValue as never\ from .includes()\ calls
  • \unknown[]\ already accepts \unknown\ as parameter, so casts were unnecessary

src/store/tests/transactionQueueStore.test.ts

  • Properly typed \mockCreateSuperfluidStream\ with jest generic parameters
  • Removed \�s never\ from mockResolvedValue return object

Verification

  • All \�s never\ casts removed
  • Runtime behavior unchanged

Closes #33

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.

🔧 Remove unsafe type casts from HomeScreen

1 participant