Skip to content

fix: remove incorrect and unused type guards#74

Merged
michaelbe812 merged 1 commit into
mainfrom
fix/remove-unused-type-guards
Sep 16, 2025
Merged

fix: remove incorrect and unused type guards#74
michaelbe812 merged 1 commit into
mainfrom
fix/remove-unused-type-guards

Conversation

@michaelbe812

Copy link
Copy Markdown
Owner

Summary

  • Removed dead code from guards.ts file to improve maintainability and reduce bundle size

Changes

  • Removed isRxStatefulConfigOrObsGuard - unused guard with generic implementation
  • Removed isRxStatefulConfigOrSourceTriggerConfigGuard - incorrect implementation (checks for wrong property)
  • Removed isObservableOrSubjectGuard - only used by removed guards
  • Cleaned up unused imports from rxjs

Impact

  • ✅ No breaking changes - these guards were not used anywhere in the codebase
  • ✅ Reduces bundle size by removing dead code
  • ✅ Improves code maintainability
  • ✅ All tests passing
  • ✅ Linting and type checking successful

Testing

  • Verified no references to removed guards exist in codebase
  • All tests pass successfully
  • Build completes without errors
  • Linting shows no issues

Closes #50

- Remove isRxStatefulConfigOrObsGuard (unused and too generic)
- Remove isRxStatefulConfigOrSourceTriggerConfigGuard (incorrect implementation)
- Remove isObservableOrSubjectGuard (only used by removed guards)
- Clean up unused imports from rxjs

Closes #50
@michaelbe812
michaelbe812 merged commit e61b27f into main Sep 16, 2025
1 check passed
@michaelbe812
michaelbe812 deleted the fix/remove-unused-type-guards branch September 16, 2025 12:26
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 incorrect and unused type guards

1 participant