类型“any”的参数不能赋给类型“never”的参数。

原始代码:
let lists = []; lists2.forEach((item) => { lists.push(item.model); });
解决以后的代码:
let lists = [] as any; lists2.forEach((item) => { lists.push(item.model); });
道法自然

原始代码:
let lists = []; lists2.forEach((item) => { lists.push(item.model); });
解决以后的代码:
let lists = [] as any; lists2.forEach((item) => { lists.push(item.model); });