You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spinning #49727 (comment) into its own issue: there are a lot of type assertions internal to TypeScript that seem to predate type predicates.
It'd be nice to test out this this kind of change to the internal TypeScript source code:
- if (type.flags & TypeFlags.Intersection) {+ if (isIntersectionType(type)) {- for (const subType of (type as IntersectionType).types) {+ for (const subType of type.types) {
Uh oh!
There was an error while loading. Please reload this page.
Suggestion
π Search Terms
isIntersectionType type predicate internal source code
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Spinning #49727 (comment) into its own issue: there are a lot of type assertions internal to TypeScript that seem to predate type predicates.
It'd be nice to test out this this kind of change to the internal TypeScript source code:
π Motivating Example
n/a
π» Use Cases
See changes in #49727.
Edit: ...and see #50010 for a draft PR.
The text was updated successfully, but these errors were encountered: