Cweili / svelte-fa

Tiny FontAwesome component for Svelte

Home Page:https://cweili.github.io/svelte-fa/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider adding Typescript declarations

apirogov opened this issue · comments

I use Svelte with TypeScript and svelte-check complains:

Hint: Could not find a declaration file for module 'svelte-fa/src/fa.svelte'. '[...]/node_modules/svelte-fa/src/fa.svelte' implicitly has an 'any' type. (ts)

    import Fa from "svelte-fa/src/fa.svelte"

It would be great if you would add TypeScript support!

Try import Fa as:

import Fa from "svelte-fa"

Thank you, that did the trick! :)