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

Add types for svelte-filepond #18

Merged
merged 9 commits into from
Dec 28, 2023
Merged

Add types for svelte-filepond #18

merged 9 commits into from
Dec 28, 2023

Conversation

nickrttn
Copy link
Contributor

This PR:

  • upgrades svelte to ^3.31 because the SvelteComponentTyped required to do this was added in that release.
  • adds types for the both the default export and re-exported FilePond exports
  • updates rollup-plugin-svelte to v6.1.1, which fixes a broken require that was throwing when running the build
    • There's also a v7.x.x of rollup-plugin-svelte but it requires upgrading rollup to v2, a new major.
  • updates the dist/ folder of this package (this could possibly be removed as npm run build is also the prepublish action?)

@nickrttn
Copy link
Contributor Author

Fixes #13

@rikschennink
Copy link
Collaborator

Thanks Nick going to check this out as soon as possible.

@pierre-H
Copy link

@rikschennink : is this PR ok for you ? 😃

@rikschennink
Copy link
Collaborator

@pierre-H Haven't gotten around to it yet.

* Comma-separated list of accepted file types
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#attr-accept
**/
acceptedFileTypes?: string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conflicts with the filepond-plugin-file-validate-type plugin, it says it should accept a string[] but this says it should be a string. The plugin already has TypeScript support so this line should be removed.

@julien-blanchon
Copy link

I hope this could be merged soon

@rikschennink rikschennink merged commit 71d693f into pqina:master Dec 28, 2023
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

Successfully merging this pull request may close these issues.

5 participants