We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
merging object spread
Playground link with relevant code
declare const A: {foo: () => void} declare const B: {foo?: () => void} const C = {...A, ...B};
const C: { foo: (() => void) | (() => void); }
const C: { foo: () => void; }
Note that this merges primitives, but not functions or objects as far as I can tell