Closed macabeus closed 1 year ago
No. https://github.com/Cweili/svelte-fa/blob/master/src/fa-layers.d.ts
Maybe you should declare types as:
declare module 'svelte-fa/src/fa.svelte' {
import Fa from 'svelte-fa/src/fa.d.ts';
export default Fa;
}
declare module 'svelte-fa/src/fa-layers.svelte' {
import FaLayers from 'svelte-fa/src/fa-layers.d.ts';
export default FaLayers;
}
Thanks for the reply, but vscode shows errors in the proposed code.
An import path cannot end with a '.d.ts' extension. Consider importing 'svelte-fa/src/fa-layers.js' instead.ts(2691)
Try importing separately and no need to declare types: https://github.com/Cweili/svelte-fa/issues/239#issuecomment-1319364670
This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.
When running
npm run check
, it says that it's missing theicon
property:But on
svelte-fa
readme, it looks like that this property isn't required. Also, the application looks like working fine.Is it a wrong type definition?
Since I'm using
svelte-kit
, I needed to do this trick: