mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix types for FileUploader component (#422)
* fix types for FileUploader component * correction of a mistaken change Co-authored-by: Daniel Miedzik <dmiedzik@bethel.jw.org>
This commit is contained in:
parent
b597a64131
commit
c670964e93
20 changed files with 248 additions and 284 deletions
|
@ -1,8 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* @typedef {string[]} Files
|
||||
* @event {Files} add
|
||||
* @event {Files} remove
|
||||
* @event {FileList} add
|
||||
* @event {FileList} remove
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -13,13 +12,13 @@
|
|||
|
||||
/**
|
||||
* Specify the accepted file types
|
||||
* @type {Files}
|
||||
* @type {string[]}
|
||||
*/
|
||||
export let accept = [];
|
||||
|
||||
/**
|
||||
* Obtain the uploaded file names
|
||||
* @type {Files}
|
||||
* @type {FileList}
|
||||
*/
|
||||
export let files = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue