#Hide some exports

3 messages · Page 1 of 1 (latest)

carmine solar
#

So 'lucide-solid' exports both <Layers /> and <LayersIcon />. They are the same. However the names of the icons are quite generic, so how do I hide all the exports that don't end with Icon from typescript?

finite pine
#

Probably cannot

#

If you can't import specific imports only, then what comes to mind is forking or wrapping lucide-solid to clean it up before it gets to your app.