error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
file.tsx(30,38): error TS2783: 'yy' is specified more than once, so this usage will be overwritten.


!!! error TS5107: Option 'module=AMD' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== file.tsx (1 errors) ====
    /// <reference path="/.lib/react.d.ts" />
    
    import React = require('react')
    declare function OneThing(): JSX.Element;
    declare function OneThing(l: {yy: number, yy1: string}): JSX.Element;
    
    let obj = {
        yy: 10,
        yy1: "hello"
    }
    
    let obj1 = {
        yy: true
    }
    
    let obj2 = {
        yy: 500,
        "ignore-prop": "hello"
    }
    
    let defaultObj: any;
    
    // OK
    const c1 = <OneThing />
    const c2 = <OneThing {...obj}/>
    const c3 = <OneThing {...{}} />
    const c4 = <OneThing {...obj1} {...obj} />
    const c5 = <OneThing {...obj1} yy={42} {...{yy1: "hi"}}/>
    const c6 = <OneThing {...obj1} {...{yy: 10000, yy1: "true"}} />
    const c7 = <OneThing {...defaultObj} yy {...obj} />;  // No error. should pick second overload
                                         ~~
!!! error TS2783: 'yy' is specified more than once, so this usage will be overwritten.
!!! related TS2785 file.tsx:30:41: This spread always overwrites this property.
    const c8 = <OneThing ignore-prop={100} />
    const c9 = <OneThing {...{ "ignore-prop":200 }} />;
    const c10 = <OneThing {...obj2} yy1="boo" />;
    