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
The type Res0, testing if the interface extends Record<string, unkown> is resolved to "no", whereas the its type counterpart resolves to "yes" (Res2).
🙂 Expected behavior
I believe unkown encompasses any when testing such type scructure. Thus I expect Res0 to resolve to "yes", i.e. an interface extends Record<string, unkown>.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
interface type intheritance Record unkown any
🕗 Version & Regression Information
This is a behavior that I have been able to observe on 3.9.3 & 4.2.4. I also reproduced it on the different versions of the playground.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
The type Res0, testing if the
interface
extendsRecord<string, unkown>
is resolved to "no", whereas the itstype
counterpart resolves to "yes" (Res2).🙂 Expected behavior
I believe
unkown
encompassesany
when testing such type scructure. Thus I expect Res0 to resolve to "yes", i.e. an interface extendsRecord<string, unkown>
.The text was updated successfully, but these errors were encountered: