Skip to content

refactor: remove dead code and rename ReturnType#31

Merged
kakasoo merged 1 commit intomainfrom
kakasoo/fix-dead-code-shadow
Feb 20, 2026
Merged

refactor: remove dead code and rename ReturnType#31
kakasoo merged 1 commit intomainfrom
kakasoo/fix-dead-code-shadow

Conversation

@kakasoo
Copy link
Owner

@kakasoo kakasoo commented Feb 20, 2026

Summary

  • Removes unreachable dead code: the if (joiner === undefined) check and unused joiner variable in deepStrictObjectKeys
  • Renames file-scoped ReturnType type to DeepStrictObjectKeysResult to avoid shadowing TypeScript's built-in ReturnType<T> utility type

All 376 tests pass without changes.

Closes #21

… built-in

- Remove unreachable `if (joiner === undefined)` check and unused `joiner` variable
- Rename file-scoped `ReturnType` to `DeepStrictObjectKeysResult` to avoid shadowing TypeScript built-in

Closes #21

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kakasoo kakasoo merged commit c5720b0 into main Feb 20, 2026
1 check passed
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.

[REFACTOR] Remove dead code and fix ReturnType shadowing in deepStrictObjectKeys

1 participant