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

This commit is contained in:
Eric Liu 2021-07-11 07:21:50 -07:00 committed by GitHub
commit 54e1e07872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}