Skip to content

feat: define RoutingSource string literal union#160

Merged
codeZe-us merged 1 commit intoBoxkit-Labs:mainfrom
codewithzubair07:feature/routing-source-type
Mar 26, 2026
Merged

feat: define RoutingSource string literal union#160
codeZe-us merged 1 commit intoBoxkit-Labs:mainfrom
codewithzubair07:feature/routing-source-type

Conversation

@codewithzubair07
Copy link
Copy Markdown
Contributor

Introduced a reusable RoutingSource string literal union to improve type safety in the routing module.

Changes
Added RoutingSource type:
'muxed' | 'memo' | 'none'
Replaced inline string union in RoutingResult.routingSource with the new reusable type
Why this change

Previously, the routing source type was defined inline, which could lead to duplication and inconsistent usage.
Defining a dedicated type ensures:

Stronger type safety
Better maintainability
Consistent usage across the routing module
Impact
No breaking changes
Purely improves type structure and code clarity
Testing
Project builds successfully with pnpm build
No runtime behavior affected

Closes #127

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@codewithzubair07 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@codeZe-us codeZe-us self-requested a review March 26, 2026 21:09
Copy link
Copy Markdown
Contributor

@codeZe-us codeZe-us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codewithzubair07 this is okay

@codeZe-us codeZe-us merged commit ba17076 into Boxkit-Labs:main Mar 26, 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.

Define RoutingSource string literal union in src/routing/types.ts

3 participants