From b07043bf028a2c446c25c8feb3649b76d471d48e Mon Sep 17 00:00:00 2001 From: Todd Schiller Date: Mon, 8 Jul 2024 14:10:29 -0400 Subject: [PATCH] Explain type --- src/components/PackageIcon.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/PackageIcon.tsx b/src/components/PackageIcon.tsx index be6ef3a4e1..d206254c01 100644 --- a/src/components/PackageIcon.tsx +++ b/src/components/PackageIcon.tsx @@ -124,6 +124,8 @@ type PackageIconProps = { * @see Metadata * @see PackageInstance */ +// As of 2.0.5, the Metadata and PackageInstance types are currently equivalent. But include both in the union to make +// the type signature more explicit. const PackageIcon = ({ packageOrMetadata, size,