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
@BoldyrevDA Unfortunately it does not appear that TypeScript currently has a way to declare ambient declarations for import assertions. You can read more on that at microsoft/TypeScript#46135
However depending on your use for this plugin, you can change the import behavior of the string import to be a CSS Module rather than using assert syntax. In order to do this, add the modules: true option to the plugin config, and then you should be able to update your declaration.d.ts with the following:
There are different ways to import css by rollup-plugin-import-css.
So, this way
I described in
declaration.d.ts
asBut is there way to declare import with assertion?
The text was updated successfully, but these errors were encountered: