How do we annotate a variable to be of a type `object`, but annotate the individual properties as well?

前端 未结 0 670
既然无缘
既然无缘 2021-01-22 13:07

In TypeScript, I am aware that we can define variables as object types, with the following.

let myObject: object;
myObject = { name: \'Khabib\', age:         


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