1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
//// [tests/cases/compiler/keyofObjectWithGlobalSymbolIncluded.ts] ////
=== keyofObjectWithGlobalSymbolIncluded.ts ===
const obj = {
>obj : { [Symbol.species]: ArrayConstructor; }
>{ [Symbol.species]: Array} : { [Symbol.species]: ArrayConstructor; }
[Symbol.species]: Array
>[Symbol.species] : ArrayConstructor
>Symbol.species : unique symbol
>Symbol : SymbolConstructor
>species : unique symbol
>Array : ArrayConstructor
};
type Q = keyof typeof obj;
>Q : unique symbol
>obj : { [Symbol.species]: ArrayConstructor; }
|