Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript Support #13

Open
AgarwalPragy opened this issue Jul 13, 2022 · 4 comments
Open

Typescript Support #13

AgarwalPragy opened this issue Jul 13, 2022 · 4 comments

Comments

@AgarwalPragy
Copy link

Using svelte-filepond with typescript causes the error Cannot resolve definitions for module 'svelte-filepond'. The type definitions aren't available at @types/svelte-filepond either.

A definitions file will be very helpful. Thanks.

@rikschennink
Copy link
Collaborator

Hopefully will add those in the near future, if anyone feels like adding them, a PR is very welcome.

@pierre-H
Copy link

Thank you @rikschennink !

@tymon3568
Copy link

I get the same errors and fix by vscode suggestion (the docs in github repo get errors):
With import in +page.svelte
import FilePond, { registerPlugin, supported } from 'svelte-filepond'; import FilePondPluginImageExifOrientation from 'filepond-plugin-image-exif-orientation'; import FilePondPluginImagePreview from 'filepond-plugin-image-preview'; import 'filepond/dist/filepond.min.css'; import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css'

in app.d.ts add this line:
declare module 'svelte-filepond';

@MuellerHF
Copy link

Any news on this? typescript complaining about not having typesupport is annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants