fix(types): upgrade sveld and type constant props as accessors

This commit is contained in:
Eric Y Liu 2021-07-11 07:08:28 -07:00
commit 4e407aa8cd
10 changed files with 63 additions and 61 deletions

View file

@ -27,13 +27,6 @@ export interface FileUploaderProps
*/
multiple?: boolean;
/**
* Override the default behavior of clearing the array of uploaded files
* @constant
* @default () => { files = []; }
*/
clearFiles?: () => void;
/**
* Specify the label description
* @default ""
@ -84,4 +77,11 @@ export default class FileUploader extends SvelteComponentTyped<
keydown: WindowEventMap["keydown"];
},
{}
> {}
> {
/**
* Override the default behavior of clearing the array of uploaded files
* @constant
* @default () => { files = []; }
*/
clearFiles: () => void;
}