When relating object literal types to unions, avoid elaborating on Array/ReadonlyArray · Issue #25750 · microsoft/TypeScript (original) (raw)
From @arackaf:
Notice that when comparing an object literal against MutationSubscription | MutationSubscription[]
, it picked the last branch which is bad.
Kind of like #24776, but here if the type originates from an object literal (or from JSX attributes?), we should avoid matching against Array
or ReadonlyArray