-
Notifications
You must be signed in to change notification settings - Fork 891
fix(types): resolve ambient declaration error in icons
type
#4991
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
fix(types): resolve ambient declaration error in icons
type
#4991
Conversation
commit: |
@vitpetricak hope you don't mind if I jumped in with the small 58fa7b6 fix @benjamincanac this also allow defining your custom icons with type support! |
Not at all, I tried to check if the types would work properly, but for some reason the So thank you so much for fixing that :) This was blocking us whole last week and I was happy to fix at least the part that blocked us. |
Yes your local ts server might hang/crash the first time you start the local dev of this library and type stuff as
No, thank you. |
icons
types
icons
typesicons
type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! I believe this was one of the first things I did on v3
π
π Linked issue
Resolves #4959
β Type of change
π Description
According to typechecking error message, it is not possible to have object in ambient types. This fix resolves it by replacing
const icons
by defining it as a type.π Checklist