Skip to content

Conversation

@Tyler-Petrov
Copy link

Moved all interfaces to types (read commit message for details).
Added support for setting a default icon component directory using the environment variable SVELICON_ICON_PATH.

Types are easier to work with as opposed to interfaces (unions, can define types that aren't an object, and will override previously defined types of the same name rather than extending them)
The output directory that the Svelte icon components get placed into can be set by the environment variable SVELICON_ICON_PATH
Removed the rouge src/icons folder
@Tyler-Petrov
Copy link
Author

I love the idea for your library, and I had a few ease of life changes. Let me know what you think!

@Bishwas-py
Copy link
Member

Thanks for the PR @Tyler-Petrov . Can I know the reason for change interfaces to types?

@Tyler-Petrov
Copy link
Author

I find types easier to work with using unions and intersections. I feel like most people are using types more exclusively over types and interfaces, so it seemed like a good change to make. There also really isn't a speed difference between types and interfaces anymore. I guess it is more of a personal preference thing, but it does seem to impact the real world albeit in a small way.

P.S. I have a few other ideas as well for making the package more customizable, so I'll probably submit another PR in the not to distant future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants