Why do people declare both an interface and a class?

后端 未结 0 1828
时光说笑
时光说笑 2020-12-05 00:32

At my workplace, I see a lot of files that look like this:

export interface IExample {
  a: number
}

export class Example implements IExample {
  a: number =         


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