Closed
Description
// @strict: true
function g(headerNames: any) {
let t = [{ hasLineBreak: false, cells: [] }];
const table = [{cells: headerNames }].concat(t);
}
Expected behavior:
No error.
Actual behavior:
Error on concat(t)
: { hasLineBreak: boolean, cells: never[] }
is not assignable to { cells: any }
. hasLineBreak
is missing.
Playground Link:
Related Issues: