Skip to content

Commit

Permalink
Move typings to JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
arackaf committed Apr 8, 2024
1 parent b0d8662 commit c397656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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.6",
"version": "2.0.7",
"description": "Svelte component for fileupload and file dropzone",
"scripts": {
"package": "svelte-kit sync && svelte-package && publint",
Expand Down
7 changes: 5 additions & 2 deletions src/lib/components/Dropzone.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script lang="ts">
<script>
import { fromEvent } from "file-selector";
import {
fileAccepted,
Expand All @@ -15,7 +15,10 @@
* Set accepted file types.
* See https://github.com/okonet/attr-accept for more information.
*/
export let accept: string | string[] = undefined;
/**
* @type {string | Array<string>}
*/
export let accept = undefined;
export let disabled = false;
export let getFilesFromEvent = fromEvent;
export let maxSize = Infinity;
Expand Down

0 comments on commit c397656

Please sign in to comment.