List({ space: 15 }) {
ForEach(
this.routers,
(router, index) => {
ListItem() {
this.RouterItem(router, index + 1)
}
}
)
}
以上代码在DevEco Studio5.0上编译,文件头已做导入import router from '@ohos.router';
在(router, index) => {处的router提示“Use explicit types instead of "any", "unknown" (arkts-no-any-unknown) ”,此时因router的类型是any,提示错误。
请问在哪里可以查看到router的类型?