artberri
artberri

Reputation: 1357

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

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?

Upvotes: 1

Views: 392

Answers (0)

Related Questions