Skip to content

Commit

Permalink
Add typescript, tweak typing
Browse files Browse the repository at this point in the history
  • Loading branch information
arackaf committed Apr 6, 2024
1 parent 066e0e7 commit 6d81705
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-file-dropzone",
"version": "2.0.4",
"version": "2.0.5",
"description": "Svelte component for fileupload and file dropzone",
"scripts": {
"package": "svelte-kit sync && svelte-package && publint",
Expand Down
6 changes: 2 additions & 4 deletions src/lib/components/Dropzone.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script>
<script lang="ts">
import { fromEvent } from "file-selector";
import {
allFilesAccepted,
composeEventHandlers,
fileAccepted,
fileMatchSize,
isEvtWithFiles,
Expand All @@ -17,7 +15,7 @@
* Set accepted file types.
* See https://github.com/okonet/attr-accept for more information.
*/
export let accept = undefined; // string or string[]
export let accept: string | string[] = undefined;
export let disabled = false;
export let getFilesFromEvent = fromEvent;
export let maxSize = Infinity;
Expand Down

0 comments on commit 6d81705

Please sign in to comment.