Open
Description
openedon Oct 29, 2018
Given
/** @param {{x: number, y: string}} x */
function f(x) {}
/** @type {{y: string}} */
const o = {y: "a"};
f({x: 1, ...o})
I'm getting a type error. I assume this is just because object spread is not fully implemented yet?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment