Skip to non null targets in error messages by DanielRosenwasser · Pull Request #25287 · microsoft/TypeScript (original) (raw)

This pull request makes it so that when failing to relate any type

Foo

to a type like

Bar | null | undefined

our error messages will skip ahead to reporting issues between Foo and Bar provided that Foo is an object or primitive type that isn't null, void, or undefined.

Fixes #25086.