In TypeScript 3.0, we're aiming for a better error message experience all around.
One of the related efforts we've been working on is related error spans: #25257.
However, in addition to that, we've received enough constructive feedback about error messages that we can act on.
TypeScript 3.0
TypeScript 3.x
These suggested improvements didn't make it in time for 3.0, but we'll hopefully continue working on them! Check out #26077 to keep track of them.
In TypeScript 3.0, we're aiming for a better error message experience all around.
One of the related efforts we've been working on is related error spans: #25257.
However, in addition to that, we've received enough constructive feedback about error messages that we can act on.
TypeScript 3.0
Foo<T>toFoo<U> | Bar<V>(Use type references for better error messages when relating to a union type #24776)Foo | Bar[](When relating object literal types to unions, avoid elaborating on Array/ReadonlyArray #25750 )Foo | null | undefined(Skip ahead on error elaboration forsource->target | null | undefinedwhen source is atomic #25086)TypeScript 3.x
These suggested improvements didn't make it in time for 3.0, but we'll hopefully continue working on them! Check out #26077 to keep track of them.
IntrinsicAttributes(Simplify error messages against intersections of weak types #24146 🏃♂️)Collapsing identical errors (Consider collapsing multiple repeated type-related error messages when in --pretty #23393)