Closed hhhapz closed 2 years ago
Which version are you using?
have the same issue on version 1.3.1
.
Looks like bind
is an instance of Modal
instead of the bind function. Importing from src fixes the issue for me.. though does feel slightly wrong to have to do:
import { bind } from 'svelte-simple-modal/src'
If you want to take a stab at it, the type annotation is https://github.com/flekschas/svelte-simple-modal/blob/master/src/Modal.svelte#L4 and it's being translated into the type definition using sveld during the build. It looks like the type def is translated correctly but maybe it's not, or something else is off.
@flekschas I'll try to take a look at it this week. Overall, this is a very handful package! Thanks
Fixed via 17663ad36c33c6292f442cce4518a414c64a80d4. If the issue still persist, please reopen.
Following the readme's example, I tried using the
bind
function, however I get this warning. Further digging seems to lead me to believe that the source of problem comes from the type definition for thebind
function to be incorrect.