Closed www-chique closed 2 years ago
Hmm, it should be exported. I'll look into this later today.
Notes for myself:
Ah, the import location of the types changed at some point, somehow.
Use this instead:
declare type FileDropEvent = import('filedrop-svelte/event').FileDropEvent;
declare type FileDropSelectEvent = import('filedrop-svelte/event').FileDropSelectEvent;
declare type FileDropDragEvent = import('filedrop-svelte/event').FileDropDragEvent;
note to self: update the README
It works now. Many thanks.
Many thanks for this great module!
However, I came across some type issues. If I use
declare type FileDropEvent = import("filedrop-svelte/lib/event").FileDropEvent;
it doesn't work because "filedrop-svelte/lib/event" doesn't exist as it's not exported.