Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Type-narrowing with redirect #824

Closed
wants to merge 2 commits into from

Conversation

amannn
Copy link
Owner

@amannn amannn commented Jan 30, 2024

Fixes #823

(only reproduction for now)

Copy link

vercel bot commented Jan 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-intl-docs ❌ Failed (Inspect) Jan 30, 2024 3:58pm
next-intl-example-app-router ❌ Failed (Inspect) Jan 30, 2024 3:58pm

@amannn
Copy link
Owner Author

amannn commented May 8, 2024

I'm closing this for the time being, we can re-open if necessary to try out potential fixes.

@amannn amannn closed this May 8, 2024
@amannn amannn deleted the fix/823-redirect-type-narrowing branch June 13, 2024 13:30
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.

TypeScript doesn't correctly narrow types and detect unreachable code after calling redirect()
1 participant