any | T
from conditional type does not reduce to any
#52568
Labels
Domain: Conditional Types
The issue relates to conditional types
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Fix Available
A PR has been opened for this issue
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
any union
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Spec
isany | string
so it can't be used withWithSpec
π Expected behavior
any | string
is reduced toany
as it was in 4.9The text was updated successfully, but these errors were encountered: