microsoft / fluentui-system-icons

Fluent System Icons are a collection of familiar, friendly and modern icons from Microsoft.
https://aka.ms/fluentui-system-icons
MIT License
5.65k stars 498 forks source link

Export `FluentIcon` type via a publicly importable export #656

Closed dlannoye closed 8 months ago

dlannoye commented 9 months ago

The FluentIcon type used by createFluentIcon and bundleIcon in @fluentui/react-icons is currently not importable without resorting to a deep path not exposed by the exports property in package.json. This type is defined in ./utils/createFluentIcon, but is not exported via the index leading to overhead when trying to build our own custom icons.

Ideally this type would be exposed since it is needed for the types of other public APIs.