Type guard but for “extends”

后端 未结 0 1272
鱼传尺愫
鱼传尺愫 2021-01-12 07:32

How can I check if a type "extends" another type?

Let\'s say I have:

interface Edible { }

interface F         


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