Improve typedefs for icon names #10092
Labels
Area: Icons
Component: Icon
Needs: Backlog review
Resolution: Soft Close
Soft closing inactive issues over a certain period
Type: Cleanup
Describe the feature that you would like added
It would be nice to have strongly-typed icon names. It's added type-safety and helps us find icons. There are no downsides beyond whatever maintenance is required.
What component or utility would this be added to
A new type definition should be added. It should look something like this:
The type definitions where an icon name would be supplied should be updated. Instead of taking
string | undefined
, takeFontIcon | undefined
. Anything else that logically expects an icon name should be similarly updated.Have you discussed this feature with our team, and if so, who
Nope, no discussion so far.
The text was updated successfully, but these errors were encountered: