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.
==== functionLikeInParameterInitializer.ts (0 errors) ====
    // error
    export function bar(func = () => foo) {
        let foo = "in";
    }
    // error
    export function baz1(func = { f() { return foo } }) {
        let foo = "in";
    }
    
    // error
    export function baz2(func = function () { return foo }) {
        let foo = "in";
    }
    
    // error
    export function baz3(func = class { x = foo }) {
        let foo = "in";
    }
    