error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'User'

前端 未结 0 2032
一个人的身影
一个人的身影 2021-02-15 20:11

interface //here is my interface file

`export interface User 
{
    userId?:string;
    name:string;
    tech:string;
}`

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