Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a file to import only the style of aliass. #2690

Open
5 of 14 tasks
k35o opened this issue Dec 15, 2024 · 5 comments
Open
5 of 14 tasks

Creating a file to import only the style of aliass. #2690

k35o opened this issue Dec 15, 2024 · 5 comments
Labels
💡 idea New ideas

Comments

@k35o
Copy link

k35o commented Dec 15, 2024

Package

  • lucide
  • lucide-angular
  • lucide-flutter
  • lucide-preact
  • lucide-react
  • lucide-react-native
  • lucide-solid
  • lucide-svelte
  • lucide-vue
  • lucide-vue-next
  • Figma plugin
  • all JS packages
  • site

Description

Generate declaration file focused on aliased names as prefix and suffix

In other words, I want to be able to do the following.

Import Style Available imports Declaration file import
Default Home, HomeIcon, LucideHome
Aliased Home [package].aliased
Prefixed LucideHome [package].prefixed
Suffixed HomeIcon [package].suffixed

Use cases

Impose the same import restrictions as prefix and suffix

Checklist

  • I have searched the existing issues to make sure this bug has not already been reported.
@k35o k35o added the 💡 idea New ideas label Dec 15, 2024
@k35o
Copy link
Author

k35o commented Dec 15, 2024

If this idea is adopted, I would like to be in charge of its implementation.

@jguddas
Copy link
Member

jguddas commented Dec 15, 2024

@jguddas jguddas closed this as completed Dec 15, 2024
@k35o
Copy link
Author

k35o commented Dec 16, 2024

@jguddas
There is a way to limit Prefix and Suffix, but there is no way to limit aliases.
I want to use only Home as the import style. Currently, if I want to use Home, I have no choice but to accept LucideHome and HomeIcon.

@jguddas jguddas reopened this Dec 16, 2024
@jguddas
Copy link
Member

jguddas commented Dec 16, 2024

The export looks right to me.

image

@ericfennis
Copy link
Member

@k35o Can your explain what your exact usecase/problem is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 idea New ideas
Projects
None yet
Development

No branches or pull requests

3 participants