complete_status:'Completed' constructor() { }
this.headers=Object.keys(this.food[0]); \\this is used to assign all the keys in an array }
我尝试从食物中提取数组中的每个对象,并根据对应的键值打印数组的值
嗨,我刚开始使用Typescript,我不知道如何解决一个typescript错误:No index signature with a parameter of type 'string' was found我读过一些关于我不能理解这个错误以及如何最好地解决它的帖子。任何帮助和解释为什么我有这个错误将不胜感激。TypeScript error: Element implicitly has an 'any' type because expression of type 'string
我在这个文件迁移到typescript的过程中遇到了相当多的问题,所以总的来说,我希望得到任何可以改进的反馈,让这个文件更安全,更少冗余。.then(res => { })
const commitKeys = Object.keysNo index signature with a parameter of type 'string' was found on t