mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
4 lines
164 B
TypeScript
4 lines
164 B
TypeScript
type A = { a: string, b: string };
|
|
const extra1 = { a: "a", b: "b", extra: "extra" };
|
|
const a1: A = { ...extra1 }; // spread should not give excess property errors
|