In my current project using TypeScript in VS Code, I am defining three interfaces: A
, B
, and C
. Each interface has two properties. Interface C
extends interfaces A
and B
.
interface A {
A1: boolean;
A2: boolean;
}
interface B {
B1: boolean;
B2: boolean;
}
interface C extends A, B {
C1: boolean;
C2: boolean;
}
const ABC: C = {
A1: true,
A2: true,
B1: true,
B2: true,
C1: true,
C2: true,
};
console.log(ABC);
However, when I hover over C
, only its own properties are displayed.
This limitation is not ideal as it prevents me from seeing the entire structure of interface C
when working with objects in the codebase.
https://i.sstatic.net/8vwFY.png Is this behavior intentional?