Closed Daellhin closed 1 year ago
Nevermind I was using the wrong import for TypeScript to properly recognise the types
For others interested:
Old import
<script lang="ts">
import Fa from "svelte-fa/src/fa.svelte";
</script>
Propper import
<script lang="ts">
import Fa from "svelte-fa";
</script>
First of all thanks for creating and maintaining this library, it is my favorite when it comes to using icons in Svelte.
I do have an minor isue with the type of the flip prop when used in typescript projects. Currently the type of the component prop
flip
infa.svelte
is a boolean because of the default valuefalse
. This causes type errors in VS Code when using the component with flip set toflip="horizontal"
Current
Proposed
Issue![image](https://github.com/Cweili/svelte-fa/assets/31322750/2845f445-a430-4f03-b220-eea76726906d)