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
Transitivity is not a property of assignability (this fact is easily demonstrated with optional properties, which is one way to reason about how index signatures should work).
i see what you mean now. however in that example it's obvious { a?: number } doesn't extend { a?: string } but i'm having trouble wrapping my head around why unknown[] doesn't extend Record<number | string, unknown>
Bug Report
π Search Terms
array record extends
π Version & Regression Information
4.6.0-dev.20220105
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
C
doesn't extendA
, even though it extendsB
which extendsA
π Expected behavior
C
extendsA
The text was updated successfully, but these errors were encountered: