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
4
types/FileUploader/FileUploaderButton.d.ts
vendored
4
types/FileUploader/FileUploaderButton.d.ts
vendored
|
|
@ -1,13 +1,11 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export type Files = string[];
|
||||
|
||||
export interface FileUploaderButtonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["input"]> {
|
||||
/**
|
||||
* Specify the accepted file types
|
||||
* @default []
|
||||
*/
|
||||
accept?: Files;
|
||||
accept?: string[];
|
||||
|
||||
/**
|
||||
* Set to `true` to allow multiple files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue