Why does not TS compare types in the strict way?

前端 未结 0 565
慢半拍i
慢半拍i 2020-12-03 18:29

Why does TS allow such behavior?

class Test1 {}

class Test2 {}

const fn = (arg: Test1) => {
  console.log(arg);
};         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题