why do I must give my `.d.ts` a diffent file name?

后端 未结 0 1247
执笔经年
执笔经年 2021-02-11 11:04
//myClass.d.ts
interface IProps{
  name:string
}


//myClass.ts
class myClass implements IProps{
name:\'hello,world\'
}

above code won\'t compile. Howev

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