ts2asl icon indicating copy to clipboard operation
ts2asl copied to clipboard

Typescript: SpreadAssignment support

Open OlafConijn opened this issue 2 years ago • 0 comments

Spread assignments are not supported:

const y = {a: 1, b: 2};
const x = { ... y, c: 3};

a workaround is to explicitly copy over each property:

const y = {a: 1, b: 2};
const x = {a: y.a, b: y.b, c:3};

OlafConijn avatar Apr 06 '22 20:04 OlafConijn