mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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
|