error TS5101: Option 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.


!!! error TS5101: Option 'keyofStringsOnly' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
==== tests/cases/compiler/lateBoundConstraintTypeChecksCorrectly.ts (0 errors) ====
    declare const fooProp: unique symbol;
    declare const barProp: unique symbol;
    
    type BothProps = typeof fooProp | typeof barProp;
    
    export interface Foo<T> {
      [fooProp]: T;
      [barProp]: string;
    }
    
    function f<T extends Foo<number>>(x: T) {
        const abc = x[fooProp]; // expected: 'T[typeof fooProp]'
    
        /**
         * Expected: no error
         */
        const def: T[typeof fooProp] = x[fooProp];
        const def2: T[typeof barProp] = x[barProp];
    }
    