function abc (d: {d:string} | null) {
const aux = {a: 't', b: 1, c: false, ...(d && {d: 11})} // if d is null this expression ...(d && ..) does not compile, so why doesn't the typechecker complain here?
aux
}
Why doesn't typescript complain here? When d is null the the expression reduces to ...false which is invalid syntax?