Following the v2.1.8 release that suffixed all icons with Icon, renaming the Icon type to PhosphorIcon would also contribute towards a better DX and more targeted suggestions. For example:
- Import autocomplete for
Icon is much more polluted than PhosphorIcon
- It's way more readable and predictable when used as a React prop
interface Props {
title: string;
icon?: Icon; // what kind of Icon?
}
interface PropsV2 {
title: string;
icon?: PhopsphorIcon; // clear and concise
}
Following the v2.1.8 release that suffixed all icons with
Icon, renaming theIcontype toPhosphorIconwould also contribute towards a better DX and more targeted suggestions. For example:Iconis much more polluted thanPhosphorIcon