mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +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
|