Closed
Description
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
Code
const y = {
prop: "ms"
}
const x = {
...y,
fn(options) {
return {
timestamps: false,
...options
}
}
}
Emits to:
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var y = {
prop: "ms"
};
var x = __assign({}, y, { fn: function (options) {
return {
timestamps: false,
...options
};
} });
Expected behavior:
"...options" will be emitted with "__assign"
Actual behavior:
"...options" is not emitted with "__assign"