Class implements interface in typescirpt

前端 未结 0 1478
心在旅途
心在旅途 2020-12-10 20:33

I was wondering why does not typescript compiler throw error on code below:

interface Greetings {
    greeting: string;
}

class Human implements Greetings {
         


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