Update fnTools.ts

This commit is contained in:
Andros Fenollosa 2022-02-10 09:22:58 +01:00 committed by GitHub
parent e9a9ab3ad1
commit 40e5fd0dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ export function getIndexOfFileList(name: string, list: Array<File>): number {
* @param {number} index
* @return {Array} list
*/
export function deleteArrayElementByIndex(list: Array<any>, index: number) {
export function deleteArrayElementByIndex(list: Array<any>, index: number): FileList {
return list.filter((item, itemIndex) => itemIndex !== index);
}