spread-runtime-optional.ts:4:41 - error SC1090: object spread of '{ id: number; name: string } | undefined' sources where 'id' has no earlier contributor (the absent arm leaves the required field unset — spread defaults first: { ...defaults, ...overrides }) is not supported yet

  3 | // initialize the required fields inferred by TypeScript.
  4 | const copies = values.map((value) => ({ ...value, label: "copy" }));
    |                                         ^~~~~~~~
  5 | console.log(copies.length);