From 28554e49ca54f0a326a68cb34ce150189840377e Mon Sep 17 00:00:00 2001 From: Daniel Miedzik Date: Fri, 27 Nov 2020 08:50:54 +0100 Subject: [PATCH] correction of a mistaken change --- COMPONENT_INDEX.md | 2 +- docs/src/COMPONENT_API.json | 2 +- src/FileUploader/FileUploader.svelte | 2 +- types/FileUploader/FileUploader.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 55a3d38f..e5d074f7 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1058,7 +1058,7 @@ None. | Prop name | Kind | Reactive | Type | Default value | Description | | :--------------- | :----------------- | :------- | :----------------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------- | | labelDescription | let | No | string | "" | Specify the label description | -| files | let | Yes | string[] | [] | Obtain the uploaded file names | +| files | let | Yes | FileList | [] | Obtain the uploaded file names | | status | let | No | "uploading" | "edit" | "complete" | "uploading" | Specify the file uploader status | | multiple | let | No | boolean | false | Set to `true` to allow multiple files | | iconDescription | let | No | string | "Provide icon description" | Specify the ARIA label used for the status icons | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 3d7ce3b7..d5e582a8 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4142,7 +4142,7 @@ "name": "files", "kind": "let", "description": "Obtain the uploaded file names", - "type": "string[]", + "type": "FileList", "value": "[]", "isFunction": false, "constant": false, diff --git a/src/FileUploader/FileUploader.svelte b/src/FileUploader/FileUploader.svelte index 45e8ac32..2e7e3aa6 100644 --- a/src/FileUploader/FileUploader.svelte +++ b/src/FileUploader/FileUploader.svelte @@ -18,7 +18,7 @@ /** * Obtain the uploaded file names - * @type {string[]} + * @type {FileList} */ export let files = []; diff --git a/types/FileUploader/FileUploader.d.ts b/types/FileUploader/FileUploader.d.ts index 1d9b6cea..2e6905ec 100644 --- a/types/FileUploader/FileUploader.d.ts +++ b/types/FileUploader/FileUploader.d.ts @@ -17,7 +17,7 @@ export interface FileUploaderProps extends svelte.JSX.HTMLAttributes