Is there a difference between Typescript `interface X extends Y` and `type X = X & Y`?

前端 未结 0 1176
攒了一身酷
攒了一身酷 2020-12-05 02:36

Typescript playground

See this code:

type BASE = {          // ALSO WORKS FOR "BASE" AS Interface
    base: "base"
}

interface OBJ         


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