swc/crates/swc_ecma_codegen/tests/fixture/issue-6589/ts/input.ts

22 lines
231 B
TypeScript

export function func({
a,
b,
...rest
}: {
a: string,
b: string,
}) {
console.log(a,b, rest)
}
const other = { unknow: "foo" }
let foo = {
...other,
bar: "baz"
};
let bar = {
bar: "baz",
...other
};