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

前端 未结 0 1517
南笙
南笙 2021-02-15 19:34

interface //here is my interface file

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

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