老师你好。
type shuzuduixiang = { id: number, name: string }[]
const obj1: shuzuduixiang = [{id:1,name:'xxx'}]
const obj2: { id: number, name: string }[] = [{id:1,name:'xxx'}]
// 我写了普通和type,请问怎么写interface定义呢?
interface shuzuduixiang2 {
// ???
}
// const obj3: ??? = [{id:1,name:'xxx'}]