You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I like that projects and I'm using the web font in a typescript project to create dynamic content. Therefore I have to set the css class names from my script. I created a script that extracts the icon names into a mdi.d.ts file so I can use it easily in my code with support of the IDE. The generated mdi.d.ts exports a single type that matches the icon names:
Hi,
I like that projects and I'm using the web font in a typescript project to create dynamic content. Therefore I have to set the css class names from my script. I created a script that extracts the icon names into a mdi.d.ts file so I can use it easily in my code with support of the IDE. The generated mdi.d.ts exports a single type that matches the icon names:
This type can then also be used for strongly typed interfaces. The import must be a "type only" import:
It would be nice if such a declaration for typescript could be added to @mdi/font with the types field in package.config pointing to it.
The text was updated successfully, but these errors were encountered: