error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== objectRestParameterES5.ts (0 errors) ====
    function cloneAgain({ a, ...clone }: { a: number, b: string }): void {
    }
    
    declare function suddenly(f: (a: { x: { z, ka }, y: string }) => void);
    suddenly(({ x: a, ...rest }) => rest.y);
    suddenly(({ x: { z = 12, ...nested }, ...rest } = { x: { z: 1, ka: 1 }, y: 'noo' }) => rest.y + nested.ka);
    
    class C {
        m({ a, ...clone }: { a: number, b: string}): void {
            // actually, never mind, don't clone
        }
        set p({ a, ...clone }: { a: number, b: string}) {
            // actually, never mind, don't clone
        }
    }
    function foobar({ bar={}, ...opts }: any = {}) {
    }
    foobar();
    foobar({ baz: 'hello' });
    foobar({ bar: { greeting: 'hello' } });
    