Is it possible to show the property reference count in Typescript Types the same way they are shown in Interfaces in VSCode?

223 views Asked by At

When interfaces are shown in VSCode I am able to see the number of references of every single property of the interface.

export interface Badge {
badgeId: {
contentBadgeId: string;
userId: string;
};
sourceId: string;
title: string;
image: ImageAsset;
badgeType: BadgeType;
partnerHasBadge: boolean;
userHasBadge: boolean;
earnedAt: string;
}

But if I convert that interface into a Type, the references are not shown anymore.

export type Badge = {
badgeId: {
contentBadgeId: string;
userId: string;
};
sourceId: string;
title: string;
image: ImageAsset;
badgeType: BadgeType;
partnerHasBadge: boolean;
userHasBadge: boolean;
earnedAt: string;
};

The same problem occurs with every Type, these screenshots are just an example of something that happens to me with every single Type. Is it possible to show the property reference count in Typescript Types the same way they are shown in Interfaces in VSCode?

0

There are 0 answers